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

All logs are always written to storaged-stderr.log file #5277

Closed
porscheme opened this issue Jan 24, 2023 · 2 comments
Closed

All logs are always written to storaged-stderr.log file #5277

porscheme opened this issue Jan 24, 2023 · 2 comments
Assignees
Labels
affects/none PR/issue: this bug affects none version. process/fixed Process of bug severity/none Severity of bug type/bug Type: something is unexpected

Comments

@porscheme
Copy link

Please check the FAQ documentation before raising an issue

Describe the bug (required)

  • All logs are always written to just storaged-stderr.log file
  • All logs are always written to just storaged-stderr.log file. They should be written to nebula-storaged.ERROR, nebula-storaged.FATAL, nebula-storaged.INFO and nebula-storaged.WARNING.
:\work>kubectl exec -it nebula-cluster-storaged-2 -n graph -c storaged -- bash -c "ls -al logs"
total 82824
drwxr-xr-x 2 root root     4096 Jan 24 08:56 .
drwxr-xr-x 1 root root     4096 Jan 24 08:56 ..
lrwxrwxrwx 1 root root       74 Jan 24 08:56 nebula-storaged.ERROR -> nebula-storaged.nebula-cluster-storaged-2.root.log.ERROR.20230124-085615.1
lrwxrwxrwx 1 root root       74 Jan 24 03:39 nebula-storaged.FATAL -> nebula-storaged.nebula-cluster-storaged-2.root.log.FATAL.20230124-033938.1
lrwxrwxrwx 1 root root       73 Jan 24 08:56 nebula-storaged.INFO -> nebula-storaged.nebula-cluster-storaged-2.root.log.INFO.20230124-085604.1
lrwxrwxrwx 1 root root       76 Jan 24 08:56 nebula-storaged.WARNING -> nebula-storaged.nebula-cluster-storaged-2.root.log.WARNING.20230124-085604.1
-rw-r--r-- 1 root root     1322 Jan 24 09:01 nebula-storaged.nebula-cluster-storaged-2.root.log.ERROR.20230124-085615.1
-rw-r--r-- 1 root root 84774083 Jan 24 10:07 storaged-stderr.log
-rw-r--r-- 1 root root        0 Dec 27 03:29 storaged-stdout.log

Your Environments (required)
v3.3.0

@porscheme porscheme added the type/bug Type: something is unexpected label Jan 24, 2023
@github-actions github-actions bot added affects/none PR/issue: this bug affects none version. severity/none Severity of bug labels Jan 24, 2023
@liwenhui-soul
Copy link
Contributor

What's the content in storaged-stderr.log? you mean the logs like "LOG(ERROR)" are always written to just storaged-stderr.log file?

@Sophie-Xie
Copy link
Contributor

I will close it. If there is more information, pls open it again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects/none PR/issue: this bug affects none version. process/fixed Process of bug severity/none Severity of bug type/bug Type: something is unexpected
Projects
None yet
Development

No branches or pull requests

3 participants