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
|
@ -54,7 +54,7 @@ func main() {
|
||||||
logger := zap.NewExample()
|
logger := zap.NewExample()
|
||||||
defer func() {
|
defer func() {
|
||||||
if err := logger.Sync(); err != nil {
|
if err := logger.Sync(); err != nil {
|
||||||
logger.Sugar().Fatalw("error syncing logger",
|
logger.Sugar().Errorw("error syncing logger",
|
||||||
"error", err,
|
"error", err,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue