Skip to content

Commit

Permalink
severity should be a str
Browse files Browse the repository at this point in the history
  • Loading branch information
sametd committed Aug 15, 2024
1 parent 57585d2 commit 35f38ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion polytope_server/common/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def add_indexable_fields(self, record, result):
def calculate_syslog_priority(self, logging_level):
severity = LOGGING_TO_SYSLOG_SEVERITY.get(logging_level, 7) # Default to LOG_DEBUG if level is not found
priority = (LOCAL7 << 3) | severity
return priority
return str(priority)

def format_for_logserver(self, record, result):
software_info = {
Expand Down

0 comments on commit 35f38ad

Please sign in to comment.