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
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/791623
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I5be8b905184f696d5ea0487ead402d431bf6825d
Gerrit-Change-Number: 791623
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged