Page MenuHomePhabricator

commands.log missing in core
Closed, ResolvedPublic

Description

In compat version there is file logs\commands.log which contains history of all command which were used for running bot. It is useful when I want to run some more complicated command again.
Unfortunatelly, there is no such log in core branch.


Version: core-(2.0)
Severity: enhancement

Details

Reference
bz67724
Related Changes in Gerrit:

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 3:29 AM
bzimport set Reference to bz67724.
bzimport added a subscriber: Unknown Object (????).
jayvdb set Security to None.
jayvdb removed a subscriber: Unknown Object (????).

Change 198547 had a related patch set uploaded (by Prianka):
Adding commands.log generating function in core.

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

Change 198547 merged by jenkins-bot:
Adding commands.log generating function in core.

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

fwiw, it is quite easy to break the format of this file using control characters (esp. new lines and line feeds), allowing me to create the following entries.
$ cat logs/commands.log
2015-04-05 20:57:51 rg5243 Python 2.7.5 shell "-help"
"015-04-05 21:00:46 rg5243 Python 2.7.5 shell "-help" "
2015-04-05 21:01:28 rg5243 Python 2.7.5 shell "-help" "
"