gitea/modules
zeripath c9c5bd88be
Stop logging EOFs and exit(1)s in ssh handler (#20476)
The code in modules/ssh/ssh.go:sessionHandler() currently cause an error to be
logged if `gitea serv` exits with a exit(1). This logging is useless because the
accompanying stderr is not provided and in any case the exit(1) is most likely due
to permissions errors.

Further it then causes the EOF to be logged - even though this is not helpful.

This PR simply checks the errors returned and stops logging them.

In the case of misconfigurations causing `gitea serv` to fail with exit(1)
the current logging is not helpful at determining this and users should simply
review the message passed over the ssh connection.

Fix #20473

Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-07-28 20:56:55 +01:00
..
activitypub
analyze
appstate
auth
avatar
base
cache
charset
container
context
convert
csv
doctor Fix various typos (#20338) 2022-07-12 23:32:37 +02:00
emoji
eventsource Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
generate
git Slightly simplify LastCommitCache (#20444) 2022-07-25 16:39:42 +01:00
gitgraph
graceful
hcaptcha
highlight
hostmatcher
httpcache
httplib
indexer
json
lfs Removed some vestigial code related to Range bounds checks (#20312) 2022-07-28 11:04:36 +08:00
log Empty log queue on flush and close (#19994) 2022-06-18 10:33:13 +08:00
markup
metrics
migration
mirror
nosql
notification
options Remove legacy `+build:` constraint (#19582) 2022-05-02 23:22:45 +08:00
packages
paginator
password
pprof
private
process
proxy
public
queue
recaptcha
references
regexplru
repository Adjust transaction handling via db.Context (#20031) 2022-06-20 14:38:58 +02:00
secret
session
setting
sitemap
ssh
storage
structs
svg
sync
templates
test
timeutil
translation
typesniffer
updatechecker
upload
uri
user
util
validation
web