This repository has been archived on 2024-01-04. You can view files and clone it, but cannot push or open issues or pull requests.
forgejo/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 Ensure memcache TTL cannot be over 30 days (#14592) 2021-02-09 22:29:03 +00:00
cors.go
cron.go
cron_test.go
database.go When reinitialising DBConfig reset the database use flags (#13796) 2020-12-02 19:39:48 -05:00
database_sqlite.go
database_test.go
git.go Add pager to the branches page (#14202) 2021-01-19 05:07:38 +01:00
indexer.go
indexer_test.go
lfs.go Handle and propagate errors when checking if paths are Dirs, Files or Exist (#13186) 2020-11-27 21:42:08 -05:00
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 Add Allow-/Block-List for Migrate & Mirrors (#13610) 2020-11-28 19:37:58 -05:00
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 Disable Stars config option (#14653) 2021-04-15 18:53:57 +02:00
service.go Allow only internal registration (#15795) 2021-05-09 16:13:35 +02:00
session.go Add SameSite setting for cookies (#14900) 2021-03-07 08:12:43 +00:00
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 more test case for STORAGE_TYPE overrides (and fixes) (#14096) 2020-12-22 01:03:18 +02:00
storage_test.go more test case for STORAGE_TYPE overrides (and fixes) (#14096) 2020-12-22 01:03:18 +02:00
task.go
webhook.go