droxit / roxcomposer

This is the droxit microservice framework repository.
GNU Lesser General Public License v3.0
5 stars 0 forks source link

Logobserver crash when logging a message that is too long #109

Open droxit-becker opened 5 years ago

droxit-becker commented 5 years ago

We've accidentally tried to log a message that has >35k characters, and assume that it results in a crash in the logobserver. After that, watching services will not result in logs anymore until the server is restarted. You can still watch services, but the logs concerning those will not show up (POST to /log_observer) - even though system logs are still being sent (at /roxcomposer_log_observer).

heller-droxit commented 5 years ago

The logs are being written to the according log files in [ROXcomposer]/logs/services but are not transferred using the log_observer REST API endpoint if the message exceeded a certain character limit.

This limit seems to be at 1955 characters. Log messages with 1955 or more characters don't get transferred properly and any subsequent log messages won't get transferred either. We can therefore assume that the process managing this endpoint stopped.

I've attached a script that tests the logging mechanisms to this chracter limit using a logging service.

test_logging.zip

heller-droxit commented 5 years ago

LogObserver crashes if message exceeds character limit