From 88a55cd0955712f23959f8a3e699cdf828e6fcca Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Tue, 27 Jun 2023 12:55:53 -0600 Subject: [PATCH] Enhance logging --- gql_graph.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gql_graph.go b/gql_graph.go index e8c3a23..043a6d7 100644 --- a/gql_graph.go +++ b/gql_graph.go @@ -24,7 +24,7 @@ func GQLInterfaceGraphNode() *graphql.Interface { node_type, ok := p.Context.Value("node_type").(reflect.Type) if ok == false { - ctx.Log.Logf("gql", "Failed to get node_type from Context") + ctx.Log.Logf("gql", "Failed to get node_type from Context: %+v", p.Context.Value("node_type")) return nil } @@ -83,7 +83,7 @@ func GQLInterfaceThread() *graphql.Interface { thread_type, ok := p.Context.Value("thread_type").(reflect.Type) if ok == false { - ctx.Log.Logf("gql", "Failed to get thread_type from Context") + ctx.Log.Logf("gql", "Failed to get thread_type from Context: %+v", p.Context.Value("thread_type")) return nil } @@ -153,7 +153,7 @@ func GQLInterfaceLockable() *graphql.Interface { lockable_type, ok := p.Context.Value("lockable_type").(reflect.Type) if ok == false { - ctx.Log.Logf("gql", "Failed to get lockable_type from Context") + ctx.Log.Logf("gql", "Failed to get lockable_type from Context: %+v", p.Context.Value("lockable_type")) return nil }