Skip to content

Commit

Permalink
#11 rest of commit trying to address last PR review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dario-br committed Oct 16, 2024
1 parent c86d636 commit 921153d
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 27 deletions.
5 changes: 1 addition & 4 deletions src/sysdiagnose/analysers/demo_analyser.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
# For Python3
# DEMO - Skeleton

import logging
from sysdiagnose.utils.base import BaseAnalyserInterface

logger = logging.getLogger('sysdiagnose')
from sysdiagnose.utils.base import BaseAnalyserInterface, logger


class DemoAnalyser(BaseAnalyserInterface):
Expand Down
5 changes: 1 addition & 4 deletions src/sysdiagnose/parsers/crashlogs.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
import glob
import os
from sysdiagnose.utils.base import BaseParserInterface
from sysdiagnose.utils.base import BaseParserInterface, logger
import re
import json
from datetime import datetime, timezone
import logging
# from pycrashreport.crash_report import get_crash_report_from_file

logger = logging.getLogger('sysdiagnose')


class CrashLogsParser(BaseParserInterface):
'''
Expand Down
5 changes: 1 addition & 4 deletions src/sysdiagnose/parsers/demo_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@

import os
import json
from sysdiagnose.utils.base import BaseParserInterface
import logging

logger = logging.getLogger('sysdiagnose')
from sysdiagnose.utils.base import BaseParserInterface, logger


class DemoParser(BaseParserInterface):
Expand Down
4 changes: 1 addition & 3 deletions src/sysdiagnose/parsers/logarchive.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#
from collections.abc import Generator
from datetime import datetime, timezone
from sysdiagnose.utils.base import BaseParserInterface
from sysdiagnose.utils.base import BaseParserInterface, logger
import glob
import json
import os
Expand All @@ -16,9 +16,7 @@
import sys
import tempfile
import shutil
import logging

logger = logging.getLogger('sysdiagnose')
# --------------------------------------------#

# On 2023-04-13: using ndjson instead of json to avoid parsing issues.
Expand Down
5 changes: 1 addition & 4 deletions src/sysdiagnose/parsers/ps.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,13 @@
# - tree structure
# - simplified
#
from sysdiagnose.utils.base import BaseParserInterface
from sysdiagnose.utils.base import BaseParserInterface, logger
import argparse
import glob
import json
import os
import re
import sys
import logging

logger = logging.getLogger('sysdiagnose')


class PsParser(BaseParserInterface):
Expand Down
5 changes: 1 addition & 4 deletions src/sysdiagnose/parsers/security_sysdiagnose.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import os
import re
from sysdiagnose.utils.base import BaseParserInterface
import logging

logger = logging.getLogger('sysdiagnose')
from sysdiagnose.utils.base import BaseParserInterface, logger

# TODO make a security sysdiagnose analyser exporting in time based jsonl for timeline.
# - client_trust: date
Expand Down
5 changes: 1 addition & 4 deletions src/sysdiagnose/parsers/wifisecurity.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
# Author: [email protected]

import os
from sysdiagnose.utils.base import BaseParserInterface
import logging

logger = logging.getLogger('sysdiagnose')
from sysdiagnose.utils.base import BaseParserInterface, logger


class WifiSecurityParser(BaseParserInterface):
Expand Down

0 comments on commit 921153d

Please sign in to comment.