Fixed wrong references to logger object

This commit is contained in:
Frisk 2019-08-08 15:22:36 +02:00
parent 28edede6b2
commit baffe38ef9
No known key found for this signature in database
GPG key ID: 0E9A7D3C0A01586C

View file

@ -489,7 +489,7 @@ def embed_formatter(action, change, parsed_comment, categories):
embed["fields"].append(
{"name": _("Added"), "value": "{data}".format(data=EditDiff.small_prev_ins), "inline": True})
else:
logging.warning("Unable to download data on the edit content!")
logger.warning("Unable to download data on the edit content!")
elif action in ("upload/overwrite", "upload/upload"): # sending files
license = None
urls = safe_read(recent_changes.safe_request(
@ -505,7 +505,7 @@ def embed_formatter(action, change, parsed_comment, categories):
embed["image"]["url"] = img_info[0]["url"]
additional_info_retrieved = True
else:
logging.warning("Request for additional image information have failed. The preview will not be shown.")
logger.warning("Request for additional image information have failed. The preview will not be shown.")
if action == "upload/overwrite":
if additional_info_retrieved:
article_encoded = change["title"].replace(" ", "_").replace(')', '\)')