Skip to content

[Webservice] More useful process name in systemd logs

Thomas Kluyver requested to merge feat/syslog-identifier into master

Description

Because we launch the services using python -m, they all show up as python in the logs:

Aug 15 16:16:30 max-exfl460.desy.de python[1004455]: root - INFO - [webservice.py:63] Initializing database

I found out how to override this just after merging !1052 (merged) yesterday: SyslogIdentifier in the unit files sets the name used in the journal:

Aug 16 12:45:42 max-exfl460.desy.de webservice[1543459]: root - INFO - [webservice.py:63] Initializing database

How Has This Been Tested?

Deployed on xcaltst.

Types of changes

  • New feature (non-breaking change which adds functionality)

Checklist:

  • My code follows the code style of this project.

Reviewers

@ahmedk @roscar

Merge request reports