Skip to content

Commit

Permalink
exception logger
Browse files Browse the repository at this point in the history
  • Loading branch information
glennake committed Nov 17, 2020
1 parent 441d09e commit 7b5bd40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions DirectFire/Converter/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,7 @@ def log(self, log_level, message):
elif log_level == 5: ## critical

logging.critical(message)

elif log_level == 6: ## exception

logging.exception(message)
1 change: 0 additions & 1 deletion DirectFire/Converter/parsers/fortigate.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
cleanse_names = common.cleanse_names
common.common_regex()


def parse(logger, src_config, routing_info=""):

logger.log(2, __name__ + ": parser module started")
Expand Down

0 comments on commit 7b5bd40

Please sign in to comment.