From 1f19bdd9c1a73e26ea0ff403d860cea54613278a Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Sun, 18 Jun 2023 21:59:18 -0600 Subject: [PATCH] Enable all log components --- graph.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graph.go b/graph.go index 17908c1..80b6615 100644 --- a/graph.go +++ b/graph.go @@ -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{}) { - logger.Init([]string{"update"}) + logger.Init(logger.Components) l, exists := logger.Loggers[component] if exists == true { 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{}) { - logger.Init([]string{"update"}) + logger.Init(logger.Components) l, exists := logger.Loggers[component] if exists == true { l.Log().Msg(fmt.Sprintf(format, items...))