Make idle log message conditional