jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/791623 )
Change subject: [IMPR] use record.filename instead of pathname for callerfile with warn msg ......................................................................
[IMPR] use record.filename instead of pathname for callerfile with warn msg
Change-Id: I5be8b905184f696d5ea0487ead402d431bf6825d --- M pywikibot/tools/_logging.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/tools/_logging.py b/pywikibot/tools/_logging.py index 682f3e2..6595aa1 100644 --- a/pywikibot/tools/_logging.py +++ b/pywikibot/tools/_logging.py @@ -21,7 +21,7 @@ 'Arguments for record is not correctly set' msg = record.args[0]
- record.__dict__['caller_file'] = record.pathname + record.__dict__['caller_file'] = record.filename record.__dict__['caller_name'] = record.module record.__dict__['caller_line'] = record.lineno
pywikibot-commits@lists.wikimedia.org