keep complementary log messages in the same function