Skip to content

Commit

Permalink
chore(logging): add query to timing log (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
Avantol13 authored Mar 21, 2024
1 parent 0e22e6d commit ddc83cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion peregrine/resources/submission/graphql/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def execute_query(query, variables=None, app=None):
# Execute query
try:
session_scope = app.db.session_scope()
timer = log_duration("GraphQL")
timer = log_duration(f"GraphQL: {query}, variables: {variables}")
result = None
with session_scope as session:
with timer:
Expand Down

0 comments on commit ddc83cd

Please sign in to comment.