Browse Source

Merge branch 'master' of git.dmitriygnatenko.ru:dima/go-common

Dima 3 days ago
parent
commit
5f80592833
1 changed files with 1 additions and 1 deletions
  1. 1 1
      logger/logger.go

+ 1 - 1
logger/logger.go

@@ -75,7 +75,7 @@ func Init(c Config) error {
 
 
 func Default() *Logger {
 func Default() *Logger {
 	if logger == nil {
 	if logger == nil {
-		panic("logger not initialised")
+		logger = &Logger{}
 	}
 	}
 
 
 	return logger
 	return logger