From de93d05289a4db95a0a00b88de973630befe84a2 Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Mon, 19 Jun 2023 15:47:40 -0600 Subject: [PATCH] Reduced logging --- graph.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graph.go b/graph.go index 3649320..1b432ba 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(logger.Components) + logger.Init([]string{"gql", "gqlws"}) 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(logger.Components) + logger.Init([]string{"gql", "gqlws"}) l, exists := logger.Loggers[component] if exists == true { l.Log().Msg(fmt.Sprintf(format, items...))