Skip to content
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

Support logging to stdout #4738

Merged
merged 1 commit into from
Feb 24, 2021
Merged

Conversation

shengjun1985
Copy link
Contributor

@shengjun1985 shengjun1985 commented Feb 24, 2021

Signed-off-by: shengjun.li shengjun.li@zilliz.com

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

Fixes #4735, #3977, #3208

What this PR does / why we need it:

(1) Add 2 config items to control log output
(2) Not to create log file if it is unnecessary

Special notes for your reviewer:

Not Available

Additional documentation (e.g. design docs, usage docs, etc.):

new config items in server_config.yaml

logs:
  log_to_stdout: false
  log_to_file: true

@shengjun1985 shengjun1985 added the kind/feature Issues related to feature request from users label Feb 24, 2021
@shengjun1985 shengjun1985 force-pushed the log_stdout branch 2 times, most recently from efdf1aa to 67f3c2e Compare February 24, 2021 08:43
Signed-off-by: shengjun.li <shengjun.li@zilliz.com>
@codecov
Copy link

codecov bot commented Feb 24, 2021

Codecov Report

Merging #4738 (ce185c2) into master (3570650) will decrease coverage by 0.99%.
The diff coverage is 94.66%.

@@            Coverage Diff             @@
##           master    #4738      +/-   ##
==========================================
- Coverage   86.91%   85.92%   -1.00%     
==========================================
  Files         434      404      -30     
  Lines       26687    24606    -2081     
==========================================
- Hits        23196    21143    -2053     
+ Misses       3491     3463      -28     
Impacted Files Coverage Δ
core/src/config/Config.h 100.00% <ø> (ø)
core/src/config/Config.cpp 88.22% <87.50%> (-2.55%) ⬇️
core/src/utils/LogUtil.cpp 86.42% <100.00%> (-0.20%) ⬇️
core/unittest/server/test_config.cpp 99.71% <100.00%> (-0.06%) ⬇️
core/unittest/server/test_util.cpp 100.00% <100.00%> (ø)
core/src/scheduler/BuildMgr.h 0.00% <0.00%> (-100.00%) ⬇️
core/src/server/init/InstanceLockCheck.h 0.00% <0.00%> (-100.00%) ⬇️
...ore/src/server/delivery/strategy/RequestStrategy.h 0.00% <0.00%> (-100.00%) ⬇️
...e/src/server/delivery/strategy/SearchReqStrategy.h 0.00% <0.00%> (-100.00%) ⬇️
...src/server/delivery/request/SearchCombineRequest.h 0.00% <0.00%> (-100.00%) ⬇️
... and 99 more

@shengjun1985 shengjun1985 merged commit 10c8cd4 into milvus-io:master Feb 24, 2021
@shengjun1985 shengjun1985 deleted the log_stdout branch February 25, 2021 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Issues related to feature request from users
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Logging to StdOut
3 participants