mirror of
https://github.com/coredns/coredns.git
synced 2025-12-03 00:54:01 -05:00
recover from panic log including stacktrace to help finding the origin (#5392)
This commit is contained in:
@@ -22,10 +22,13 @@ Extra knobs are available with an expanded syntax:
|
||||
|
||||
~~~
|
||||
errors {
|
||||
stacktrace
|
||||
consolidate DURATION REGEXP [LEVEL]
|
||||
}
|
||||
~~~
|
||||
|
||||
Option `stacktrace` will log a stacktrace during panic recovery.
|
||||
|
||||
Option `consolidate` allows collecting several error messages matching the regular expression **REGEXP** during **DURATION**. After the **DURATION** since receiving the first such message, the consolidated message will be printed to standard output with
|
||||
log level, which is configurable by optional option **LEVEL**. Supported options for **LEVEL** option are `warning`,`error`,`info` and `debug`.
|
||||
~~~
|
||||
|
||||
Reference in New Issue
Block a user