Add more gql logging

graph-rework-2
noah metz 2023-06-28 01:35:17 -06:00
parent 43dd555801
commit 31ecc869ec
1 changed files with 2 additions and 0 deletions

@ -171,6 +171,7 @@ func GQLInterfaceLockable() *graphql.Interface {
} }
p_type := reflect.TypeOf(p.Value) p_type := reflect.TypeOf(p.Value)
ctx.Log.Logf("gql", "Value Type: %+v, Lockable Type: %+v", p_type, *lockable_type)
for key, value := range(valid_lockables) { for key, value := range(valid_lockables) {
if p_type == key { if p_type == key {
@ -569,6 +570,7 @@ func GQLTypeBaseLockable() * graphql.Object {
} }
value_type := reflect.TypeOf(p.Value) value_type := reflect.TypeOf(p.Value)
ctx.Log.Logf("gql", "BASE_VALUE_TYPE: %+v", value_type)
if value_type.Implements(*lockable_type) { if value_type.Implements(*lockable_type) {
return true return true