Skip to content

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

Merged
techknowlogick merged 2 commits into
go-gitea:release/v1.7from
zeripath:backport-5887
Feb 3, 2019
Merged

Silence console logger in gitea serv (#5887)#5943
techknowlogick merged 2 commits into
go-gitea:release/v1.7from
zeripath:backport-5887

Conversation

@zeripath
Copy link
Copy Markdown
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 art27@cantab.net

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 <art27@cantab.net>
@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
Copy Markdown
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