itdoxy-lab/cmd
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
..
admin.go Fix missing storage init (#15589) 2021-04-22 18:48:47 +02:00
admin_auth_ldap.go
admin_auth_ldap_test.go
cert.go
cmd.go
convert.go
docs.go Add docs command (#13429) 2020-11-07 08:32:57 +08:00
doctor.go Refactor doctor (#12264) 2020-12-02 06:56:04 +02:00
dump.go dump: Add option to skip LFS/attachment files (#15407) 2021-04-12 17:33:32 +08:00
dump_repo.go Dump github/gitlab/gitea repository data to a local directory and restore to gitea (#12244) 2020-12-27 11:34:19 +08:00
embedded.go
embedded_stub.go
generate.go
hook.go Code Formats, Nits & Unused Func/Var deletions (#15286) 2021-04-09 09:40:34 +02:00
keys.go
mailer.go
manager.go
migrate.go
migrate_storage.go
restore_repo.go Move restore repo to internal router and invoke from command to avoid open the same db file or queues files (#15790) 2021-05-10 15:57:45 +08:00
serv.go add a new internal hook to save ssh log (#15787) 2021-05-21 17:37:16 -04:00
web.go Fix error message when saving generated LOCAL_ROOT_URL config (#15880) 2021-05-15 11:23:21 +01:00
web_graceful.go Move FCGI req.URL.Path fix-up to the FCGI listener (#15292) 2021-04-09 21:17:57 +08:00
web_letsencrypt.go Fix bound address/port for caddy's certmagic library (see #15848) (#15859) 2021-05-14 15:39:10 +01:00