gitea/modules/setting
a1012112796 fec8324026
add a new internal hook to save ssh log (#15787)
* add a new internal hook to save ssh log

as title, when a ssh error ocure like #15785.
only when switch ``RUN_MODE`` to dev can we
found which error is ocure. But this way is
not a good idea for production envirment.

this changes try save ssh error mesage to the
log file like other log by a new internal hook.
I think it's usefull for find error message
in production envirment. Thanks.

Signed-off-by: a1012112796 <1012112796@qq.com>

* rename and fix nit

* Update modules/private/hook.go

Co-authored-by: silverwind <me@silverwind.io>

Co-authored-by: techknowlogick <matti@mdranta.net>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2021-05-21 17:37:16 -04:00
..
attachment.go
cache.go
cors.go
cron.go
cron_test.go
database.go
database_sqlite.go
database_test.go
git.go
indexer.go Avoid setting the CONN_STR in issue indexer queue unless it is meant to be set (#13069) 2020-10-07 23:24:41 +01:00
indexer_test.go
lfs.go
log.go
mailer.go
markup.go
migrations.go
mime_type_map.go
oauth2_client.go
picture.go
project.go
queue.go Slightly simplify the queue settings code to help reduce the risk of problems (#12976) 2020-10-15 17:40:03 -04:00
repository.go
service.go
session.go
setting.go
setting_test.go
storage.go
storage_test.go
task.go
webhook.go