improved code quality

8 jobs for set_logname in 122 minutes and 43 seconds (queued for 2 seconds)