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

as title, when a ssh error ocure like .
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>
..
hook.go add a new internal hook to save ssh log ()
internal.go Migrate to use jsoniter instead of encoding/json ()
key.go Upgrade golangci-lint to 1.24.0 ()
mail.go Migrate to use jsoniter instead of encoding/json ()
manager.go Migrate to use jsoniter instead of encoding/json ()
restore_repo.go Move restore repo to internal router and invoke from command to avoid open the same db file or queues files ()
serv.go Migrate to use jsoniter instead of encoding/json ()