Skip to content

Commit 5972c44

Browse files
committed
removed panic and added debug
1 parent 12c46be commit 5972c44

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

utils/logger/logger.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package logger
22

33
import (
4+
"fmt"
45
"strings"
56

67
"go.uber.org/zap"
@@ -39,7 +40,7 @@ func Init(level string) {
3940
_log, err = cfg.Build(zap.AddCaller(), zap.AddCallerSkip(1))
4041

4142
if err != nil {
42-
panic(err)
43+
fmt.Println("Encountered Error during Log.Init(): err.Error()")
4344
}
4445

4546
Info("Initialized Logger with Level of", logLevel.String())

0 commit comments

Comments
 (0)