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

Error log print #2811

Closed
Cyber-SiKu opened this issue Oct 17, 2023 · 2 comments
Closed

Error log print #2811

Cyber-SiKu opened this issue Oct 17, 2023 · 2 comments
Assignees
Labels
bug Something isn't working Developer Activities

Comments

@Cyber-SiKu
Copy link
Contributor

Cyber-SiKu commented Oct 17, 2023

Describe the bug (描述bug)

Since the error log is printed on the standard output, the content running in the container will be saved in the docker directory, causing the log to occupy a large amount of disk. It is hoped that it will only be printed in the log file instead of the standard output.
This is an entry.

To Reproduce (复现方法)

Expected behavior (期望行为)

Versions (各种版本)
OS:
Compiler:
branch:
commit id:

Additional context/screenshots (更多上下文/截图)

@NaturalSelect
Copy link
Contributor

NaturalSelect commented Nov 3, 2023

Hello @Cyber-SiKu , I'm interested in this issue, please let me try it.

@Cyber-SiKu Cyber-SiKu changed the title Error log printed to standard output Error log print Nov 3, 2023
@NaturalSelect
Copy link
Contributor

Hello @Cyber-SiKu, glog still write log to stderr, even FLAGS_logtostderr is false.

Here is my scheme:

  • If FLAGS_logtostderr is false, use dup2 function to set fd2(stderr) to /dev/null.

NaturalSelect added a commit to NaturalSelect/curve that referenced this issue Nov 7, 2023
close: opencurve#2811

Signed-off-by: NaturalSelect <2145973003@qq.com>
NaturalSelect added a commit to NaturalSelect/curve that referenced this issue Nov 7, 2023
close: opencurve#2811

Signed-off-by: NaturalSelect <2145973003@qq.com>
NaturalSelect added a commit to NaturalSelect/curve that referenced this issue Nov 7, 2023
close: opencurve#2811

Signed-off-by: NaturalSelect <2145973003@qq.com>
NaturalSelect added a commit to NaturalSelect/curve that referenced this issue Nov 7, 2023
close: opencurve#2811

Signed-off-by: NaturalSelect <2145973003@qq.com>
NaturalSelect added a commit to NaturalSelect/curve that referenced this issue Nov 8, 2023
close: opencurve#2811

Signed-off-by: NaturalSelect <2145973003@qq.com>
NaturalSelect added a commit to NaturalSelect/curve that referenced this issue Nov 9, 2023
close: opencurve#2811

Signed-off-by: NaturalSelect <2145973003@qq.com>
NaturalSelect added a commit to NaturalSelect/curve that referenced this issue Nov 10, 2023
close: opencurve#2811

Signed-off-by: NaturalSelect <2145973003@qq.com>
NaturalSelect added a commit to NaturalSelect/curve that referenced this issue Nov 10, 2023
close: opencurve#2811

Signed-off-by: NaturalSelect <2145973003@qq.com>
NaturalSelect added a commit to NaturalSelect/curve that referenced this issue Nov 10, 2023
close: opencurve#2811

Signed-off-by: NaturalSelect <2145973003@qq.com>
NaturalSelect added a commit to NaturalSelect/curve that referenced this issue Nov 10, 2023
close: opencurve#2811

Signed-off-by: NaturalSelect <2145973003@qq.com>
NaturalSelect added a commit to NaturalSelect/curve that referenced this issue Nov 10, 2023
close: opencurve#2811

Signed-off-by: NaturalSelect <2145973003@qq.com>
wuhongsong pushed a commit to wuhongsong/curve that referenced this issue Nov 28, 2023
close: opencurve#2811

Signed-off-by: NaturalSelect <2145973003@qq.com>
wuhongsong pushed a commit to wuhongsong/curve that referenced this issue Dec 1, 2023
close: opencurve#2811

Signed-off-by: NaturalSelect <2145973003@qq.com>
wuhongsong pushed a commit to wuhongsong/curve that referenced this issue Dec 20, 2023
close: opencurve#2811

Signed-off-by: NaturalSelect <2145973003@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Developer Activities
Projects
None yet
Development

No branches or pull requests

4 participants