tgstation / tgstation

The /tg/station branch of SS13.
https://www.tgstation13.org/
GNU Affero General Public License v3.0
1.72k stars 4.74k forks source link

Newlines in game.log are getting a timestamp prepended #41281

Closed nfreader closed 5 years ago

nfreader commented 5 years ago
[2018-10-16 12:30:08.971] ADMIN: Ambassador Magikarp/(Jean-Luc Vanleer) has created a command report: Due to bold corporate decisions(and space drugs) your station has been granted access to a more interesting and restricted set of generally unobtainable tools. Equipment shall be bluespace artilleried to their respective departments. We assume you will all be responsible with said items?
[2018-10-16 12:30:08.971] 
[2018-10-16 12:30:08.971] 
[2018-10-16 12:30:08.971] WARNING: Not all departments may obtain said equipment. Nanotrasen command is not responsible for any harm caused by misuse of said equipment.

From: https://tgstation13.org/parsed-logs/basil/data/logs/2018/10/16/round-95554/game.txt

The issue here is that Statbus' log parser treats every timestamp as a new line in the logs. The WARNING on the last line is treated as a log type due to how this works.

Cyberboss commented 5 years ago

@SpaceManiac rust-g issue?

SpaceManiac commented 5 years ago

https://github.com/tgstation/rust-g/pull/13

Jordie0608 commented 5 years ago

This is still occurring, command reports and admin PMs seem to be the only source however.

SpaceManiac commented 5 years ago

I'll cut a rust-g release and PR it here tomorrow