mirror of
https://github.com/fhmq/hmq.git
synced 2026-08-29 22:13:11 +00:00
Plugins support (#46)
* modify * update * add acl * add feature * update dockerfile * add deploy * update * update * plugins * plugins * update * update * update * fixed * remove * fixed * add log * update * fixed * update * fix config * add http api * add http api * resp * add config for work chan * update * fixed * update * disable trace * fixed * change acl * fixed * fixed res * dd * dd * ddd * dd * update * fixed * update * add * fixed * update key * add log * update * format * update * update auth * update * update readme * added * update * fixed * fixed * fix * upade * update * update
This commit is contained in:
@@ -16,6 +16,8 @@ var (
|
||||
// NewDevLogger return a logger for dev builds
|
||||
func NewDevLogger() (*zap.Logger, error) {
|
||||
logCfg := zap.NewDevelopmentConfig()
|
||||
// logCfg.Level = zap.NewAtomicLevelAt(zap.DebugLevel)
|
||||
logCfg.DisableStacktrace = true
|
||||
return logCfg.Build()
|
||||
}
|
||||
|
||||
@@ -46,5 +48,9 @@ func InitLogger(debug bool) {
|
||||
|
||||
// Get return a *zap.Logger instance
|
||||
func Get() *zap.Logger {
|
||||
if instance == nil {
|
||||
l, _ := NewProdLogger()
|
||||
return l
|
||||
}
|
||||
return instance
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user