Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Logging broken in Docker image #6194

Closed
Zash opened this issue Oct 11, 2019 · 1 comment
Closed

Logging broken in Docker image #6194

Zash opened this issue Oct 11, 2019 · 1 comment

Comments

@Zash
Copy link

Zash commented Oct 11, 2019

Description

Synapse in the matrixdotorg/synapse Docker image produces debug logs normally in v1.0.0 but after v1.1.0 only HTTP request logs.

I believe it is related to the removal of loggers.synapse.level in #5547, restoring that restores normal debug logging.

Steps to reproduce

  • docker run --rm -it -p 8008:8008 -e SYNAPSE_SERVER_NAME=localhost -e SYNAPSE_REPORT_STATS=no -e SYNAPSE_LOG_LEVEL=DEBUG -e SYNAPSE_NO_TLS=true matrixdotorg/synapse:v1.0.0-py3
  • Observe debug logs
  • docker run --rm -it -p 8008:8008 -e SYNAPSE_SERVER_NAME=localhost -e SYNAPSE_REPORT_STATS=no -e SYNAPSE_LOG_LEVEL=DEBUG -e SYNAPSE_NO_TLS=true matrixdotorg/synapse:v1.1.0-py3
  • Observe diminished logs, only HTTP related request logs
  • Add loggers.synapse.level="DEBUG" to logging config (exact details left as an exercise)
  • Run the result
  • observe logs again

Version information

Problem observed

  • Version:

>=1.1.0

  • Install method:

Docker.

  • Platform:

Tested on Docker on Windows and Docker on Debian Linux

@richvdh
Copy link
Member

richvdh commented Oct 11, 2019

Thanks for the report. Hopefully fixed by #6197.

richvdh added a commit that referenced this issue Oct 11, 2019
Turns out that loggers that are instantiated before the config is loaded get
turned off.

Also bring the logging config that is generated by --generate-config into line.

Fixes #6194.
richvdh added a commit that referenced this issue Oct 18, 2019
Turns out that loggers that are instantiated before the config is loaded get
turned off.

Also bring the logging config that is generated by --generate-config into line.

Fixes #6194.
@richvdh richvdh closed this as completed Oct 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants