-
Notifications
You must be signed in to change notification settings - Fork 3
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
#82 - configurable scout log level #83
Conversation
@@ -108,7 +108,7 @@ private function run() : bool | |||
{ | |||
$this->logger->debug('Core Agent Launch in Progress'); | |||
try { | |||
$logLevel = $this->config->get('log_level'); | |||
$logLevel = $this->config->get('agent_log_level'); |
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.
Note: this is likely a BC break, so I'm happy to take suggestions on "naming" stuff here...
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.
The python names, and names here are mostly core_agent_KEY
as the pattern for config. So why not core_agent_log_level
for this.
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.
OK: I've extracted all config key strings I could find and put them into a single class to keep naming consistent. I then renamed the core agent-related keys in dbbe20d as follows:
log_level
=>core_agent_log_level
log_file
=>core_agent_log_file
config_file
=>core_agent_config_file
socket_path
=>core_agent_socket_path
download_url
=>core_agent_download_url
These are all BC breaks of course, but if you're happy with these renames, it does add consistency. I've noted these changes in the CHANGELOG.md
.
@@ -108,7 +108,7 @@ private function run() : bool | |||
{ | |||
$this->logger->debug('Core Agent Launch in Progress'); | |||
try { | |||
$logLevel = $this->config->get('log_level'); | |||
$logLevel = $this->config->get('agent_log_level'); |
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.
The python names, and names here are mostly core_agent_KEY
as the pattern for config. So why not core_agent_log_level
for this.
2d89edb
to
dbbe20d
Compare
Fixes #82