mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
Improving Logger init
This commit is contained in:
committed by
Dan Christian Bogos
parent
e52fd1dbda
commit
475a239401
@@ -34,8 +34,7 @@ func init() {
|
||||
|
||||
var err error
|
||||
//used for testing only, so we will ignore the error for now
|
||||
Logger, err = Newlogger(MetaSysLog, EmptyString)
|
||||
if err != nil {
|
||||
if Logger, err = Newlogger(MetaSysLog, EmptyString); err != nil {
|
||||
noSysLog = true
|
||||
Logger, _ = Newlogger(MetaStdLog, EmptyString)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user