mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Pause, Resume, Release&Reopen, Add and Remove Logging from command line (#11777)
* Make LogDescriptions race safe * Add manager commands for pausing, resuming, adding and removing loggers Signed-off-by: Andrew Thornton <art27@cantab.net> * Placate lint * Ensure that file logger is run! * Add support for smtp and conn Signed-off-by: Andrew Thornton <art27@cantab.net> * Add release-and-reopen Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: Lauris BH <lauris@nix.lv>
This commit is contained in:
@@ -42,6 +42,10 @@ func RegisterRoutes(m *macaron.Macaron) {
|
||||
m.Post("/manager/shutdown", Shutdown)
|
||||
m.Post("/manager/restart", Restart)
|
||||
m.Post("/manager/flush-queues", bind(private.FlushOptions{}), FlushQueues)
|
||||
|
||||
m.Post("/manager/pause-logging", PauseLogging)
|
||||
m.Post("/manager/resume-logging", ResumeLogging)
|
||||
m.Post("/manager/release-and-reopen-logging", ReleaseReopenLogging)
|
||||
m.Post("/manager/add-logger", bind(private.LoggerOptions{}), AddLogger)
|
||||
m.Post("/manager/remove-logger/:group/:name", RemoveLogger)
|
||||
}, CheckInternalToken)
|
||||
}
|
||||
|
Reference in New Issue
Block a user