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

Silence console logger in gitea serv (#5887) #5943

Merged
merged 2 commits into from
Feb 3, 2019

Conversation

zeripath
Copy link
Contributor

@zeripath zeripath commented Feb 3, 2019

By default, if setting.NewContext() prints out any warning logs, these are printed to the stdout breaking git receive-pack etc. meaning that even if there is a warning because of a minor problem in your app.ini but gitea starts despite this - you CANNOT push or pull over SSH.

This PR disables the console logger whilst in serv.go

Backport #5887 to fix #5866

Signed-off-by: Andrew Thornton [email protected]

By default, if `setting.NewContext()` prints out any warning logs, these are printed to the stdout breaking `git receive-pack` etc. meaning that even if there is a warning because of a minor problem in your app.ini but gitea starts despite this - you **CANNOT** push or pull over SSH.

This PR disables the console logger whilst in `serv.go`

Signed-off-by: Andrew Thornton <[email protected]>
@zeripath zeripath added this to the 1.7.2 milestone Feb 3, 2019
@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Feb 3, 2019
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Feb 3, 2019
@techknowlogick
Copy link
Member

Make LG-TM work

@techknowlogick techknowlogick merged commit 849c85a into go-gitea:release/v1.7 Feb 3, 2019
@zeripath zeripath deleted the backport-5887 branch February 3, 2019 20:49
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
@GiteaBot GiteaBot added the pr/breaking Merging this PR means builds will break. Needs a description what exactly breaks, and how to fix it! label May 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. pr/breaking Merging this PR means builds will break. Needs a description what exactly breaks, and how to fix it! type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants