diff options
author | zeripath <art27@cantab.net> | 2020-07-06 01:07:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-05 20:07:07 -0400 |
commit | c5b08f6d5a73e6ba84da84e804d05a8dd3d651be (patch) | |
tree | 7e0f72b9c62b8764d000614714c91a01ebbee223 /integrations | |
parent | 38fb087d1983ca8320fb1a8c90150ae7956b358d (diff) | |
download | gitea-c5b08f6d5a73e6ba84da84e804d05a8dd3d651be.tar.gz gitea-c5b08f6d5a73e6ba84da84e804d05a8dd3d651be.zip |
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>
Diffstat (limited to 'integrations')
-rw-r--r-- | integrations/testlogger.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/integrations/testlogger.go b/integrations/testlogger.go index 9636c4892e..f84ed47e4f 100644 --- a/integrations/testlogger.go +++ b/integrations/testlogger.go @@ -170,6 +170,11 @@ func (log *TestLogger) Init(config string) error { func (log *TestLogger) Flush() { } +//ReleaseReopen does nothing +func (log *TestLogger) ReleaseReopen() error { + return nil +} + // GetName returns the default name for this implementation func (log *TestLogger) GetName() string { return "test" |