-
Notifications
You must be signed in to change notification settings - Fork 33
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
dyn-logger: make sure the logLevel changing log visible always #177
Conversation
Fixes: bz#1661406 Signed-off-by: Xiubo Li <[email protected]>
The test logs:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Reviewed By: Amar Tumballi
@lxbsz Can we fix https://bugzilla.redhat.com/show_bug.cgi?id=1661406 in this PR ? Thanks! |
@lxbsz what are your thoughts about this ? |
The change here will make sure that the logLevel changing output log could be seen all the time. Before this the logLevel changing output log only be seen when the logLevel is DEBUG, WARN and INFO, because itself is under the INFO logLevel. And from my last comment you can see that when switching the logLevel from ERROR to WARN the log is displayed:
Isn't that what we need to fix that BZ ? |
My memory is bad, I though we have a plan about syncing gluster-block with fixes in https://github.com/open-iscsi/tcmu-runner/pull/506/commits (namely, 1. directory level watch, 2. checking if we are honoring defaults when commented post changing value, 3. retry configfile open if initial one fails .. etc) Not sure, If I had discussed this with you or Neha. |
Sorry Prasanna, I also couldn't remember of this and may miss this discussion. And I am okay with this above. Thanks. |
Sure @lxbsz, please go ahead and make changes. Thanks! |
@@ -44,7 +44,7 @@ glusterBlockSetLogLevel(unsigned int logLevel) | |||
LOCK(gbConf.lock); | |||
gbConf.logLevel = logLevel; | |||
UNLOCK(gbConf.lock); | |||
LOG("mgmt", GB_LOG_INFO, | |||
LOG("mgmt", GB_LOG_NONE, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, right.
Since this is duplicated to @163, I will close this PR now.
Thanks Prasanna.
Fixes: bz#1661406
Signed-off-by: Xiubo Li [email protected]