Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Commit

Permalink
fixed add log error and error output
Browse files Browse the repository at this point in the history
  • Loading branch information
leftmove committed May 3, 2024
1 parent 68db65a commit 0c95de9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion routers/lib/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def find_specific_log(query):


def add_log(cik, message, name="", identifier=""):
if message.isinstance(dict):
if isinstance(message, dict):
log_string = (
f'{message["message"]}, ({message["name"]}) ({message["identifier"]})'
)
Expand Down
2 changes: 1 addition & 1 deletion routers/lib/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ def report_error(cik, e):
if production_environment and run_telemetry:
sentry_sdk.capture_exception(e)
error = format_error(e)
logging.erro(error)
logging.error(error)
f.write(error)

0 comments on commit 0c95de9

Please sign in to comment.