Skip to content
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.

Allow setting log level from docker plugin install #1015

Merged
merged 1 commit into from
Mar 9, 2017

Conversation

msterin
Copy link
Contributor

@msterin msterin commented Mar 9, 2017

This PR allows setting log level of managed plugin to debug (or other level).

This is done by adding DVV_LOG_LEVEL=debug (or other level) to the end of docker plugin install... command.

tested: installed with and without the option and checked the log shows correct level .
doc: plugin/Readme.md

Copy link
Contributor

@lipingxue lipingxue left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@shaominchen shaominchen left a comment

Choose a reason for hiding this comment

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

LGTM. Just one nit below.

@@ -48,6 +47,13 @@
"Capabilities": ["CAP_SYS_ADMIN"],
"Devices": null

},
"Env": [ {
"name": "DVV_LOG_LEVEL",
Copy link
Contributor

Choose a reason for hiding this comment

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

How about just "LOG_LEVEL"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

since it's an env vars, we need to allow different log levels for different components and LOG_LEVEL is too generic

@msterin msterin merged commit 254af66 into master Mar 9, 2017
@msterin msterin deleted the log_level_env.msterin branch March 14, 2017 18:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants