Skip to content
Snippets Groups Projects
Verified Commit ef9df935 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

REVIEW: change calls to logging.warning to logger.warning.

parent dac71b9a
No related branches found
No related tags found
1 merge request!22Release 0.3
__pycache__ __pycache__
.tox .tox
.eggs
.coverage .coverage
*cache.db *cache.db
*.egg-info *.egg-info
.docker/cert .docker/cert
src/caosadvancedtools/version.py
...@@ -224,7 +224,7 @@ class Crawler(object): ...@@ -224,7 +224,7 @@ class Crawler(object):
msg = ("The crawler has no matching rules for and is thus " msg = ("The crawler has no matching rules for and is thus "
"ignoring:\n{}".format(item)) "ignoring:\n{}".format(item))
logging.warning(msg, extra={"identifier": str(item), logger.warning(msg, extra={"identifier": str(item),
'category': "matches"}) 'category': "matches"})
if len(matches[idx]) > 1: if len(matches[idx]) > 1:
...@@ -233,7 +233,7 @@ class Crawler(object): ...@@ -233,7 +233,7 @@ class Crawler(object):
+ "\tRecordTypes:\t" + ", ".join( + "\tRecordTypes:\t" + ", ".join(
matches[idx])+"\n") matches[idx])+"\n")
logging.warning(msg, extra={"identifier": str(item), logger.warning(msg, extra={"identifier": str(item),
'category': "matches"}) 'category': "matches"})
def cached_find_identifiables(self, identifiables): def cached_find_identifiables(self, identifiables):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment