logger.cpp bugfix