Enable all log components

graph-rework
noah metz 2023-06-18 21:59:18 -06:00
parent fe9bc8ade0
commit 1f19bdd9c1
1 changed files with 2 additions and 2 deletions

@ -59,7 +59,7 @@ func (logger * DefaultLogger) Init(components []string) error {
} }
func (logger * DefaultLogger) Logm(component string, fields map[string]interface{}, format string, items ... interface{}) { func (logger * DefaultLogger) Logm(component string, fields map[string]interface{}, format string, items ... interface{}) {
logger.Init([]string{"update"}) logger.Init(logger.Components)
l, exists := logger.Loggers[component] l, exists := logger.Loggers[component]
if exists == true { if exists == true {
log := l.Log() log := l.Log()
@ -71,7 +71,7 @@ func (logger * DefaultLogger) Logm(component string, fields map[string]interface
} }
func (logger * DefaultLogger) Logf(component string, format string, items ... interface{}) { func (logger * DefaultLogger) Logf(component string, format string, items ... interface{}) {
logger.Init([]string{"update"}) logger.Init(logger.Components)
l, exists := logger.Loggers[component] l, exists := logger.Loggers[component]
if exists == true { if exists == true {
l.Log().Msg(fmt.Sprintf(format, items...)) l.Log().Msg(fmt.Sprintf(format, items...))