-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conmon none log driver #172
Conversation
@haircommander I was hoping to figure out how to manually run conmon so I could verify the none driver actually never logs anything in the test runner. I can verify when I run it manually no file is ever created, while if I pass in something like "this", it does create an empty file. |
|
I have just reminded myself that |
@goochjj can you verify that running |
@haircommander I bet it will - I wasn't sure how to handle that case, I noticed it was in a loop. But, what happens if I imagine file 2 will win? |
It seems like you made |
yeah 2 wins. luckily, conmon is only meant to be called by tools that users will call, so one would hope these funky situations don't arise... Right now, conmon logging seems to let users shoot themselves in the foot (in the k8s-file example you've described), so I suppose it's idiomatic to allow none with other drivers, thus making none a no-op. I am ok with that I would say it could be a follow up to make error handling with logging more sane |
LGTM |
I just tested with docker, and did --log-driver json --log-driver journald and got journald. I think what's probably going to end up happening if you implement more of these, depending on how specialized syslog gets or fluentd or elasticsearch or whatever else you add, clearly you're not going to implement booleans for every single one, so when that abstraction happens you'll make decisions like do we really want 1 log driver, or is many acceptable, and if it is acceptable, maybe k8s writing to 2 files is... or writing to journald and k8s file(s)... I'd imagine 1 journald would be enough, unless the journald driver is extended to support namespaces in the future. TLDR, I assume sometime soon there's going to be a refactor on that logic anyway. |
what's a little more tech debt 😆 thanks for checking, one more +1 and I'll merge 😃 |
LGTM |
@haircommander @rhatdan Trouble you folks for a fresh Conmon release so I can use this in Podman CI? |
on it |
Implement "none" log-driver
Supports off, none, or null.