Solves #293. Removes obsolete code from cfg/logging.go that sets log file permissions to hard-coded 0600 in every bouncer start. This PR uses lumberjacklog roller library's native log file creation functionality instead which preserves existing log file permissions.
The logtools.SetLogFilePermissions() seems to have been copy-pasted from lumberjack as a quick-fix to natefinch/lumberjack#82, but the upstream issue has been fixed four years ago.
Summary
Solves #293. Removes obsolete code from
cfg/logging.go
that sets log file permissions to hard-coded0600
in every bouncer start. This PR useslumberjack
log roller library's native log file creation functionality instead which preserves existing log file permissions.The
logtools.SetLogFilePermissions()
seems to have been copy-pasted fromlumberjack
as a quick-fix to natefinch/lumberjack#82, but the upstream issue has been fixed four years ago.