mirror of
https://github.com/mxpv/podsync.git
synced 2024-05-11 05:55:04 +00:00
Notify when using log file (fix: #224)
This commit is contained in:
@@ -81,6 +81,8 @@ func main() {
|
||||
}
|
||||
|
||||
if cfg.Log.Filename != "" {
|
||||
log.Infof("Using log file: %s", cfg.Log.Filename)
|
||||
|
||||
log.SetOutput(&lumberjack.Logger{
|
||||
Filename: cfg.Log.Filename,
|
||||
MaxSize: cfg.Log.MaxSize,
|
||||
|
||||
Reference in New Issue
Block a user