Skip to content

Commit

Permalink
Removed extra debug comments
Browse files Browse the repository at this point in the history
  • Loading branch information
babenek committed Nov 14, 2022
1 parent 722c068 commit 6faeb2c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions credsweeper/file_handler/data_content_provider.py
Expand Up @@ -58,8 +58,6 @@ def represent_as_structure(self) -> bool:
if "{" in text:
self.structure = json.loads(text)
logger.debug("CONVERTED from json")
# logger.debug("CONVERTED from '%s' json:\n%s", self.data.decode(encoding='utf-8', errors='strict'),
# str(self.structure))
else:
logger.debug("Data do not contain { - weak JSON")
except Exception as exc:
Expand All @@ -72,9 +70,7 @@ def represent_as_structure(self) -> bool:
try:
if ":" in text:
self.structure = yaml.load(text, Loader=yaml.FullLoader)
# logger.debug("CONVERTED from yaml")
logger.debug("CONVERTED from '%s' yaml:\n%s", self.data.decode(encoding='utf-8', errors='strict'),
str(self.structure))
logger.debug("CONVERTED from yaml")
else:
logger.debug("Data do not contain colon mark - weak YAML")
except Exception as exc:
Expand Down

0 comments on commit 6faeb2c

Please sign in to comment.