fix(Logger): remove assert called each time logger is accessed (performance)
This commit is contained in:
@@ -6,8 +6,6 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"reflect"
|
"reflect"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
Assert "github.com/lbatuska/goutils/assert"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Use this in the init() function to initialize the size of the buffered channel
|
// Use this in the init() function to initialize the size of the buffered channel
|
||||||
@@ -29,7 +27,6 @@ func Create(instance Logger) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func LoggerInstance() Logger {
|
func LoggerInstance() Logger {
|
||||||
Assert.NotNil(loggerInstance)
|
|
||||||
return loggerInstance
|
return loggerInstance
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user