Last modified: 2013-11-14 16:45:04 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T54007, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 52007 - Scribunto should send lua error output to error log by default
Scribunto should send lua error output to error log by default
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Scribunto (Other open bugs)
master
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-25 00:27 UTC by Mark A. Hershberger
Modified: 2013-11-14 16:45 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Mark A. Hershberger 2013-07-25 00:27:31 UTC
Because stderr is set to null by default, all error output from lua is lost.  This is probably good for production, but when someone is just setting up Scribunto initially (the case where they are least likely to know how to change the error output), they expect errors in the web server's log.
Comment 1 Brad Jorsch 2013-07-25 14:22:40 UTC
Or they could just read the extension's documentation for how to install, configure, and troubleshoot it.

Note that the output from the standalone interpreter is copious even in the absence of errors. I doubt people would be particularly happy with their logs being flooded with this information.
Comment 2 Mark A. Hershberger 2013-07-25 17:03:49 UTC
"How do I turn off this noise from lua?" is a much better FAQ than "Lua doesn't work and I don't see any errors.  What is going on?"

Errors should be easily discovered.
Comment 3 Gerrit Notification Bot 2013-07-25 19:41:24 UTC
Change 75988 had a related patch set uploaded by MarkAHershberger:
Scribunto should send lua error output to error log

https://gerrit.wikimedia.org/r/75988
Comment 4 Mark A. Hershberger 2013-07-25 19:43:23 UTC
I did see the debugging cruft that the lua wrapper puts in, but managed to elide it unless debugging information is requested.
Comment 5 Gerrit Notification Bot 2013-11-14 16:45:04 UTC
Change 75988 abandoned by MarkAHershberger:
Scribunto should send lua error output to error log

https://gerrit.wikimedia.org/r/75988

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links