Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 14, 2025
1 parent 4f046ba commit ec4538b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 5 additions & 3 deletions src/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,11 @@ def wrapper(*args, **kwargs): # noqa
if route_variables in response:
return response[route_variables]
else:
logger.warning(f"Waited {QUERY_WAIT_SECONDS} seconds but response not "
f"in cache. Setting this route as not running, "
f"and continuing")
logger.warning(
f"Waited {QUERY_WAIT_SECONDS} seconds but response not "
f"in cache. Setting this route as not running, "
f"and continuing"
)
currently_running[route_variables] = False
break

Expand Down
3 changes: 2 additions & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@

structlog.configure(
wrapper_class=structlog.make_filtering_bound_logger(
getattr(logging, os.getenv('LOGLEVEL','INFO'))),
getattr(logging, os.getenv("LOGLEVEL", "INFO"))
),
processors=[
structlog.processors.EventRenamer("message", replace_by="_event"),
structlog.stdlib.PositionalArgumentsFormatter(),
Expand Down

0 comments on commit ec4538b

Please sign in to comment.