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

Allow to send logs to stdout/stderr #613

Merged
merged 2 commits into from
May 29, 2022
Merged

Allow to send logs to stdout/stderr #613

merged 2 commits into from
May 29, 2022

Conversation

git-hulk
Copy link
Member

@git-hulk git-hulk commented May 29, 2022

This closes #478

Currently, we only supported sending logs to the log file,
but we expected to collect logs through stdout/stderr instead of
the log file when deploying the Kvrocks in the container. We also
upgrade the glog to v0.6.0 since logstostdout was supported after that.

Currently, we only supported to send logs to the log file,
but we epxected to collect logs through stdout/stderr instead of
the log file when deploying the Kvrocks in the container. We also
upgrade the glog to v0.6.0 since the logs to stdout was supported
after that.
@git-hulk git-hulk added feature type new feature release notes labels May 29, 2022
@git-hulk git-hulk requested a review from ShooterIT May 29, 2022 04:16
@git-hulk
Copy link
Member Author

This CI failure seems was related to issue: google/snappy#128, will investigate why it only happens in current PR(maybe the GCC version was updated).

@PragmaTwice
Copy link
Member

PragmaTwice commented May 29, 2022

This CI failure seems was related to issue: google/snappy#128, will investigate why it only happens in current PR(maybe the GCC version was updated).

Try add BUILD_SHARED_LIBS=OFF to https://github.com/apache/incubator-kvrocks/blob/unstable/cmake/glog.cmake#L32, or set a global variable set(BUILD_SHARED_LIBS OFF CACHE ...).
Some options are changed in glog v0.6.0, which may affect the global configurations.
This error occurred only when shared libraries of snappy are built.

@git-hulk
Copy link
Member Author

cool, thanks @PragmaTwice.

@git-hulk
Copy link
Member Author

Thanks @ShooterIT @tisonkun @PragmaTwice, will merge this PR.

@git-hulk git-hulk merged commit a3cba6d into apache:unstable May 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature type new feature release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Is it possible to send log output to system out instead of file?
4 participants