-
Notifications
You must be signed in to change notification settings - Fork 74
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
Addition of disable-debug mode to ECS Logs Collector #79
base: master
Are you sure you want to change the base?
Conversation
if [ -e /etc/sysconfig/docker ]; then | ||
case "${init_type}" in | ||
systemd) | ||
# sed -i 's/^OPTIONS="\(.*\)/OPTIONS="-D \1/g' /etc/sysconfig/docker |
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.
nit: lets remove this comment and L828
sed -i 's/\-D//g' /etc/sysconfig/docker | ||
ok |
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.
this seems to be common to both cases (systemd and *). can we move this to be before the case and remove it here and L829 below?
if [ ! -d /etc/ecs ]; then | ||
mkdir /etc/ecs | ||
fi |
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.
if /etc/ecs
doesn't exist then they don't have the ECS_LOGLEVEL=debug set in the config. wonder why we want to create the dir here ?
mkdir /etc/ecs | ||
fi | ||
|
||
sed -i '/^\s*ECS_LOGLEVEL=debug/d' /etc/ecs/ecs.config |
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.
this sets the log level to debug, instead of unsetting it or setting it back to info
Summary
Modification for #78
Implementation details
Details on #78
Testing
New tests cover the changes: No, Manually tested.
Licensing
This contribution is under the terms of the Apache 2.0 License: