Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion emailproxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ class Log:
_LOGGER = None
_HANDLER = None
_DATE_FORMAT = '%Y-%m-%d %H:%M:%S:'
_SYSLOG_MESSAGE_FORMAT = '%s: %%(message)s' % APP_NAME
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing the name makes sense, but why do we need to remove the : too?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this woould make the : part of the syslog identifier, which is not desirable IMO

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thinking about this further, would it be better to remove _SYSLOG_MESSAGE_FORMAT entirely, and just use APP_SHORT_NAME when setting up the logger? That would fall back to the logger's standard format, which is likely to be more widely expected/supported.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wondering whether you had any thoughts on this?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry for not replying, I need some time to prepare a staging platform for testing things, because the platform where I deployed emailproxy is now in production.

_SYSLOG_MESSAGE_FORMAT = '%s %%(message)s' % APP_SHORT_NAME
_MACOS_USE_SYSLOG = False

@staticmethod
Expand Down