-
Notifications
You must be signed in to change notification settings - Fork 10
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
Issue #11 #12
base: master
Are you sure you want to change the base?
Issue #11 #12
Conversation
…functionality of the rest of the program It is recommended to save error.log in /var/lib/marznode
Hi. so I don't generally like the idea because it would save whatever comes out of stdout(may include access log) into the error log file. Thanks for the PR regardless. |
As far as I figured out - there is no problem with saving the access log and xray itself handles it perfectly. There is a small problem with error.log, that it is necessary to send the entire stdout there and there may be some extra information (?) |
There are some problems with writing to the file. In case of crashes it may not be written. We must wait for a fix Fixed |
What do you think about adding a named pipe for error.log? |
we already have stdout and stderr.
it's not convenient to manipulate xray config and copy stdout into the supposed error log file. Add an environmental variable for saving both stdout and stderr to file instead and let xray handle its log configuration itself. |
Ok. But shouldn't marznode use logs and send them to marzneshin? Letting xray write everything to a file without going through xray_backend won't break this process? |
I have a solution using FIFO PIPE to output xray logs and redirect them to a file |
Quality Gate passedIssues Measures |
If the user asks xray to write its log to a file, we shouldn't interrupt the process, we'd print the log from stdout in case there is any. |
Added the ability to save error.log to a file without disrupting the functionality of the rest of the program
It is recommended to save error.log in /var/lib/marznode