diff options
author | Valery Piashchynski <[email protected]> | 2020-12-16 21:52:52 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-12-16 21:52:52 +0300 |
commit | a5431a6dd0dc1d803bd7cfa2bbcb017d85d0999e (patch) | |
tree | 873249c7bf427fec21dba377a7f84caaec853e87 /plugins/gzip | |
parent | dd0238723a153646631ba0a8c2577d74fce61214 (diff) |
Use ERROR log level everywhere. Remove unused code from Reload plugin
Diffstat (limited to 'plugins/gzip')
-rw-r--r-- | plugins/gzip/tests/configs/.rr-http-middlewareNotExist.yaml | 5 | ||||
-rw-r--r-- | plugins/gzip/tests/configs/.rr-http-withGzip.yaml | 5 | ||||
-rw-r--r-- | plugins/gzip/tests/plugin_test.go | 4 |
3 files changed, 10 insertions, 4 deletions
diff --git a/plugins/gzip/tests/configs/.rr-http-middlewareNotExist.yaml b/plugins/gzip/tests/configs/.rr-http-middlewareNotExist.yaml index 3dc5f9df..08c9b0ff 100644 --- a/plugins/gzip/tests/configs/.rr-http-middlewareNotExist.yaml +++ b/plugins/gzip/tests/configs/.rr-http-middlewareNotExist.yaml @@ -19,4 +19,7 @@ http: numWorkers: 2 maxJobs: 0 allocateTimeout: 60s - destroyTimeout: 60s
\ No newline at end of file + destroyTimeout: 60s +logs: + mode: development + level: error
\ No newline at end of file diff --git a/plugins/gzip/tests/configs/.rr-http-withGzip.yaml b/plugins/gzip/tests/configs/.rr-http-withGzip.yaml index 38fdfe47..3475d5dd 100644 --- a/plugins/gzip/tests/configs/.rr-http-withGzip.yaml +++ b/plugins/gzip/tests/configs/.rr-http-withGzip.yaml @@ -19,4 +19,7 @@ http: numWorkers: 2 maxJobs: 0 allocateTimeout: 60s - destroyTimeout: 60s
\ No newline at end of file + destroyTimeout: 60s +logs: + mode: development + level: error
\ No newline at end of file diff --git a/plugins/gzip/tests/plugin_test.go b/plugins/gzip/tests/plugin_test.go index 39979895..97291ebe 100644 --- a/plugins/gzip/tests/plugin_test.go +++ b/plugins/gzip/tests/plugin_test.go @@ -21,7 +21,7 @@ import ( ) func TestGzipPlugin(t *testing.T) { - cont, err := endure.NewContainer(nil, endure.SetLogLevel(endure.DebugLevel)) + cont, err := endure.NewContainer(nil, endure.SetLogLevel(endure.ErrorLevel)) assert.NoError(t, err) cfg := &config.Viper{ @@ -102,7 +102,7 @@ func headerCheck(t *testing.T) { } func TestMiddlewareNotExist(t *testing.T) { - cont, err := endure.NewContainer(nil, endure.SetLogLevel(endure.DebugLevel)) + cont, err := endure.NewContainer(nil, endure.SetLogLevel(endure.ErrorLevel)) assert.NoError(t, err) cfg := &config.Viper{ |