Skip to content

Allow nosyslog with daemon mode.#1163

Open
aebrahim wants to merge 1 commit into
sshuttle:masterfrom
aebrahim:syslog
Open

Allow nosyslog with daemon mode.#1163
aebrahim wants to merge 1 commit into
sshuttle:masterfrom
aebrahim:syslog

Conversation

@aebrahim

Copy link
Copy Markdown

It will still default to true if daemon is specified, but now we can allow specification of no syslog with daemon mode.

@brianmay

Copy link
Copy Markdown
Member

This doesn't appear to make sense to me.

If --syslog is not provided, it will have a value of None, and syslog will be enabled in daemon mode.

If --syslog is provided, it will have a value of true, and syslog will be enabled.

After this change, there doesn't actually appear to be anyway to disable the syslog.

@aebrahim

Copy link
Copy Markdown
Author

I confused store_true with a bool arg - I'll update. Thanks for looking

@brianmay brianmay left a comment

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.

Changes as discussed.

argparse.BooleanOptionalAction might be better choice maybe?

Assuming that works :-)

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