Skip to content

Commit

Permalink
hotfix logging issues (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
SOOS-JAlvarez committed Nov 4, 2022
1 parent 6d7d4e2 commit 2122588
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.9
1.0.10
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,7 @@ def __init__(self):
def parse_configuration(self, configuration: Dict, target_url: str):
valid_required("Target URL", target_url)
self.target_url = target_url
self.log_level = configuration.get("level", "INFO")
log("Log Level: " + self.log_level, LogLevel.INFO)
self.log_level = configuration.get("level", LogLevel.INFO)
logging.getLogger("SOOS DAST").setLevel(self.log_level)
log(json.dumps(configuration, indent=2), log_level=LogLevel.DEBUG)
for key, value in configuration.items():
Expand Down Expand Up @@ -710,6 +709,7 @@ def parse_args(self) -> None:
parser.add_argument(
"--level",
help="Minimum level to show: PASS, IGNORE, INFO, WARN or FAIL",
default="INFO",
required=False,
)
parser.add_argument(
Expand Down

0 comments on commit 2122588

Please sign in to comment.