0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-25 22:14:36 +01:00
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 add a new internal hook to save ssh log (#15787) 2021-05-21 17:37:16 -04:00
mailer.go
markup.go Refactor renders (#15175) 2021-04-19 18:25:08 -04:00
migrations.go
mime_type_map.go Add mimetype mapping settings (#15133) 2021-05-10 16:38:08 -04:00
oauth2_client.go OAuth2 login: Set account link to "login" as default behavior (#15768) 2021-05-07 16:15:16 +02:00
picture.go add /assets as root dir of public files (#15219) 2021-04-28 12:35:06 +00:00
project.go
queue.go
repository.go
service.go Allow only internal registration (#15795) 2021-05-09 16:13:35 +02:00
session.go
setting.go add a new internal hook to save ssh log (#15787) 2021-05-21 17:37:16 -04:00
setting_test.go Migrate to use jsoniter instead of encoding/json (#14841) 2021-03-01 22:08:10 +01:00
storage.go
storage_test.go
task.go
webhook.go