Skip to content

Commit ddc83cd

Browse files
authored
chore(logging): add query to timing log (#216)
1 parent 0e22e6d commit ddc83cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

peregrine/resources/submission/graphql/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def execute_query(query, variables=None, app=None):
101101
# Execute query
102102
try:
103103
session_scope = app.db.session_scope()
104-
timer = log_duration("GraphQL")
104+
timer = log_duration(f"GraphQL: {query}, variables: {variables}")
105105
result = None
106106
with session_scope as session:
107107
with timer:

0 commit comments

Comments
 (0)