mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
Rather use log.Errorw instead of log.Fatalw if logger fails to sync
This commit is contained in:
parent
cabb0d2783
commit
eda759a437
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ func main() {
|
|||
logger := zap.NewExample()
|
||||
defer func() {
|
||||
if err := logger.Sync(); err != nil {
|
||||
logger.Sugar().Fatalw("error syncing logger",
|
||||
logger.Sugar().Errorw("error syncing logger",
|
||||
"error", err,
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue