-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Don't put the servername in the filename of the default logging conf #13696
base: develop
Are you sure you want to change the base?
Conversation
Signed-off-by: Jörg Behrmann <[email protected]>
@@ -112,7 +109,7 @@ esac | |||
|
|||
# build the log config file | |||
"${TARGET_PYTHON}" "${VIRTUALENV_DIR}/bin/generate_log_config" \ | |||
--output-file="${PACKAGE_BUILD_DIR}/etc/matrix-synapse/log.yaml" | |||
--output-file="${PACKAGE_BUILD_DIR}/etc/matrix-synapse/log.config" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you're renaming a conffile in debian packaging, you need to add stuff to the pre/postinst to help users.
See https://manpages.debian.org/unstable/dpkg/dpkg-maintscript-helper.1.en.html for more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, if it's a yaml file, I think it should be called *.yaml
. Your concern that synapse might treat it as a regular config file if you put it in the config directory is noted... so don't do that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you're renaming a conffile in debian packaging, you need to add stuff to the pre/postinst to help users.
Will look into implementing a helper for that.
Also, if it's a yaml file, I think it should be called
*.yaml
. Your concern that synapse might treat it as a regular config file if you put it in the config directory is noted... so don't do that?
I think that's a foot gun I'd rather not implement. I'm sure that's an edge case, but since --config-path=
can take directories and the config directory defaults to the directory of the last found config file I could foresee situations where (missing) config files are generated in the same directory where --config-path=
is pointed to.
@behrmann Do you have interest in finishing this up? |
Yes, sorry about the delay. Been swamped with other work. This is at the top of my synapse todo list for what it's worth. Will try to get back to it asap. |
Pull Request Checklist
As just touched on in #13669. This is probably still missing something and I haven't tested this, but I wanted to open it as a sort of todo.
/cc @richvdh
EventStore
toEventWorkerStore
.".code blocks
.(run the linters)