formatting
Only log when there is log.