Solve double-logging and problem of log messages going missing entirely