-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
refactor(apollo logging): Simplify the default log path to /opt/logs #4833
Conversation
# Conflicts: # README.md
Codecov Report
@@ Coverage Diff @@
## master #4833 +/- ##
============================================
+ Coverage 48.38% 48.40% +0.01%
- Complexity 1722 1724 +2
============================================
Files 346 346
Lines 10827 10827
Branches 1078 1078
============================================
+ Hits 5239 5241 +2
+ Misses 5266 5264 -2
Partials 322 322 see 2 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
There is an issue that the gc.log would conflict if they are running in one machine. apollo/apollo-configservice/src/main/scripts/startup.sh Lines 95 to 110 in 2800a00
|
As I think, we can use a more reasonable name, like /opt/apollo/logs, not magic number |
Adding prefix of ServiceName to gc.log path |
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
What's the purpose of this PR
refactor(apollo logging): Simplify the default log path to
/opt/logs
motivation
The default log path for all Apollo services is prefixed with 100003172, which seems to have no additional purpose but hinders quick locating of log files. It's time to remove it.