Univention Bugzilla – Bug 34047
UMC-Server: Message logs attribute warnings if not application/json
Last modified: 2016-07-04 17:28:17 CEST
Message._set_key and in protocol/message.py checks for self.mimetype == MIMETYPE_JSON if some key shall be set (e.g. status). (Same for _get_key) If the mime type is something else, e.g. in computerroom/screenshot, the log of this module gets filled with useless: PARSER ( PROCESS ) : Attribute status just available for MIME type application/json three times per request! Logs contain hundreds of megabytes after a few days when the computerroom module is used. This is no bug of the computerroom. Those messages are triggered by the UMC server who does not check the mime type before accessing or setting the status. Either check the mime type everywhere in UMC-server or remove the log message completely (preferred). At least change PARSER.process to PARSER.info so that those messages do not show up in a default installation.
Ticket#2014082621000327 (In reply to Dirk Wiesenthal from comment #0) > If the mime type is something else, e.g. in computerroom/screenshot, the log > of this module gets filled with useless: > > PARSER ( PROCESS ) : Attribute status just available for MIME type > application/json > > three times per request! Yes - this is really annoying when digging for real problems (and messes up the filesystem when computerroom is heavily used).
Created attachment 6324 [details] patch Attached a patch which removes the cases where the logging was done and lowers the level of these messages to INFO.
fixed there. *** This bug has been marked as a duplicate of bug 37366 ***
<http://errata.univention.de/ucs/4.0/199.html>