Skip to content

Keep the debug stream off the log server by default - #31

Open
thomas-samoht wants to merge 1 commit into
mainfrom
fix/debug-stream-syslog-opt-out
Open

thomas-samoht wants to merge 1 commit into
mainfrom
fix/debug-stream-syslog-opt-out

Conversation

@thomas-samoht

Copy link
Copy Markdown
Contributor

No description provided.

@thomas-samoht
thomas-samoht marked this pull request as ready for review October 20, 2026 14:18
@thomas-samoht
thomas-samoht requested a review from a team as a code owner October 20, 2026 14:18
if unknown:
raise ValueError(f"unknown {setting} {unknown}, choose from {list(choices)}")

return list(dict.fromkeys(names))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just checking, names is already a list, can't that be returned?

@thomas-samoht thomas-samoht Oct 21, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No, you can't return names. list(dict.fromkeys(names)) removes duplicates and keeps the original order.
But we ccould also treat duplicates as a config mistake, then _selected or the config class could raise a error, the same way it does for unknown names. Then it could return names unchanged.

if you have somethign like console_streams=["app", "app"] then that would without dedupping result in every app record printed twice

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Its here in draft if we want tthat: #33

@thomas-samoht
thomas-samoht force-pushed the fix/debug-stream-syslog-opt-out branch from 127000c to bb89e46 Compare October 21, 2026 08:43
@thomas-samoht
thomas-samoht force-pushed the fix/debug-stream-syslog-opt-out branch from bb89e46 to b5f3470 Compare October 21, 2026 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants