-
Notifications
You must be signed in to change notification settings - Fork 1.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
logrotate #3541
logrotate #3541
Conversation
install lld when pull request , will set lld as default linker.
src/daemons/SetupLogging.cpp
Outdated
if (!FileUtils::makeDir(FLAGS_log_dir)) { | ||
return Status::Error("Failed to create log directory `%s'", FLAGS_log_dir.c_str()); | ||
} | ||
if (!FileUtils::exist(FLAGS_log_dir) and !FileUtils::makeDir(FLAGS_log_dir)) { |
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.
and => &&
src/daemons/SetupLogging.h
Outdated
@@ -0,0 +1,16 @@ | |||
/* Copyright (c) 2018 vesoft inc. All rights reserved. |
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.
2021
@@ -20,6 +20,8 @@ | |||
--stderr_log_file=metad-stderr.log | |||
# Copy log messages at or above this level to stderr in addition to logfiles. The numbers of severity levels INFO, WARNING, ERROR, and FATAL are 0, 1, 2, and 3, respectively. | |||
--stderrthreshold=2 | |||
# wether logging files' name contain time stamp, If Using logrotate to rotate logging files, than should set it to true. |
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.
typo whether
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.
Generally LGTM, a typo.
What type of PR is this?
What does this PR do?
logrotate rotate log
Which issue(s)/PR(s) this PR relates to?
close #3066
Special notes for your reviewer, ex. impact of this fix, etc:
do not merge util thirdparty 3.0 is merged.
Additional context/ Design document:
Checklist:
Release notes:
Please confirm whether to be reflected in release notes and how to describe: