Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
anodos325 committed Dec 31, 2024
1 parent da3bd41 commit 429eb5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ixdiagnose/plugins/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def parse_log_file(path: str) -> list[dict]:
if '@cee:{"TNLOG":' not in line:
continue

data = loads(line.split('@cee:')[1])
data = json.loads(line.split('@cee:')[1])
results.append(data['TNLOG'])

return results
Expand All @@ -39,4 +39,4 @@ def gather_exceptions(client: None, resource_type: str) -> dict:

class LoggedExceptions(Plugin):
name = 'logged_exceptions'
metrics = [PythonMetric(f'log_file_exceptions', gather_exceptions, serializable=True)]
metrics = [PythonMetric('log_file_exceptions', gather_exceptions, serializable=True)]

0 comments on commit 429eb5b

Please sign in to comment.