-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
The logger not output messages when logging fatal #2958
Comments
Which file do you find the |
code.gitea.io/gitea/modules/log/log.go |
You need to set rights for git user rights to have write access to that directory |
Yes, it have no rights, the problem is that the official logger not output error message in this case, it's hard to installing without source code debugging, maybe it's not appropriate for newcomers. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions. |
This should be a bug of log module. The log haven't write to console or file and the application exited. |
It should have been fixed by |
I have been trying to install gitea (master and v1.3) today, but when i finish install it from browser, the go program was exited without any error messages, when i run "./gitea web" again, it can not be restarted.
I have debugged it, and i found "code.gitea.io/gitea/modules/log".Fatal was using go channel to output messages, maybe os.Exit was called before outputting messages .
My server system information:
Linux iZ23mbdnjl9Z 3.2.0-4-amd64 #1 SMP Debian 3.2.78-1 x86_64 GNU/Linux
CPU: 1 core
Maybe need to fix this code:
Official output:
Expect output:
The text was updated successfully, but these errors were encountered: