feat: add log enable config

This commit is contained in:
Noah Hsu
2022-06-09 15:12:34 +08:00
parent cd21f14106
commit 5b73b68eb5
2 changed files with 3 additions and 1 deletions

View File

@ -22,7 +22,7 @@ func Log() {
FullTimestamp: true,
})
logConfig := conf.Conf.Log
if !args.Debug && logConfig.Path != "" {
if logConfig.Enable {
var (
writer *rotatelogs.RotateLogs
err error