You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/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>
3 years ago
..
admin.go Fix missing storage init (#15589) 3 years ago
admin_auth_ldap.go Add restricted user filter to LDAP authentication (#10600) 4 years ago
admin_auth_ldap_test.go Add restricted user filter to LDAP authentication (#10600) 4 years ago
cert.go Add golangci (#6418) 5 years ago
cmd.go Sendmail command (#13079) 4 years ago
convert.go Move database settings from models to setting (#7806) 5 years ago
docs.go Add docs command (#13429) 4 years ago
doctor.go Refactor doctor (#12264) 4 years ago
dump.go dump: Add option to skip LFS/attachment files (#15407) 3 years ago
dump_repo.go Dump github/gitlab/gitea repository data to a local directory and restore to gitea (#12244) 4 years ago
embedded.go Implement "embedded" command to extract static resources (#9982) 4 years ago
embedded_stub.go Implement "embedded" command to extract static resources (#9982) 4 years ago
generate.go TrimSpace when reading InternalToken from a file (#11502) 4 years ago
hook.go Code Formats, Nits & Unused Func/Var deletions (#15286) 3 years ago
keys.go Add debug option to serv to help debug problems (#9492) 5 years ago
mailer.go Fix send mail (#13312) 4 years ago
manager.go Pause, Resume, Release&Reopen, Add and Remove Logging from command line (#11777) 4 years ago
migrate.go Graceful: Xorm, RepoIndexer, Cron and Others (#9282) 5 years ago
migrate_storage.go Avatars and Repo avatars support storing in minio (#12516) 4 years ago
restore_repo.go Move restore repo to internal router and invoke from command to avoid open the same db file or queues files (#15790) 3 years ago
serv.go add a new internal hook to save ssh log (#15787) 3 years ago
web.go Fix error message when saving generated LOCAL_ROOT_URL config (#15880) 3 years ago
web_graceful.go Move FCGI req.URL.Path fix-up to the FCGI listener (#15292) 3 years ago
web_letsencrypt.go Fix bound address/port for caddy's certmagic library (see #15848) (#15859) 3 years ago