mirror of
https://github.com/crazy-max/diun.git
synced 2025-12-21 21:33:22 +01:00
Add TEST_NOTIF variable (#79)
Co-authored-by: Uli <github@uli-fahrer.de>
This commit is contained in:
@@ -28,7 +28,7 @@ Flags:
|
|||||||
--log-level="info" Set log level ($LOG_LEVEL).
|
--log-level="info" Set log level ($LOG_LEVEL).
|
||||||
--log-json Enable JSON logging output ($LOG_JSON).
|
--log-json Enable JSON logging output ($LOG_JSON).
|
||||||
--log-caller Add file:line of the caller to log output ($LOG_CALLER).
|
--log-caller Add file:line of the caller to log output ($LOG_CALLER).
|
||||||
--test-notif Test notification settings.
|
--test-notif Test notification settings ($TEST_NOTIF).
|
||||||
```
|
```
|
||||||
|
|
||||||
## Server configuration
|
## Server configuration
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ Image: crazymax/diun:latest
|
|||||||
* `LOG_LEVEL` : Log level output (default `info`)
|
* `LOG_LEVEL` : Log level output (default `info`)
|
||||||
* `LOG_JSON`: Enable JSON logging output (default `false`)
|
* `LOG_JSON`: Enable JSON logging output (default `false`)
|
||||||
* `LOG_CALLER`: Enable to add file:line of the caller (default `false`)
|
* `LOG_CALLER`: Enable to add file:line of the caller (default `false`)
|
||||||
|
* `TEST_NOTIF`: Enable to test notification settings on startup (default `false`)
|
||||||
|
|
||||||
## Volumes
|
## Volumes
|
||||||
|
|
||||||
|
|||||||
@@ -10,5 +10,5 @@ type Cli struct {
|
|||||||
LogLevel string `kong:"name='log-level',env='LOG_LEVEL',default='info',help='Set log level.'"`
|
LogLevel string `kong:"name='log-level',env='LOG_LEVEL',default='info',help='Set log level.'"`
|
||||||
LogJSON bool `kong:"name='log-json',env='LOG_JSON',default='false',help='Enable JSON logging output.'"`
|
LogJSON bool `kong:"name='log-json',env='LOG_JSON',default='false',help='Enable JSON logging output.'"`
|
||||||
LogCaller bool `kong:"name='log-caller',env='LOG_CALLER',default='false',help='Add file:line of the caller to log output.'"`
|
LogCaller bool `kong:"name='log-caller',env='LOG_CALLER',default='false',help='Add file:line of the caller to log output.'"`
|
||||||
TestNotif bool `kong:"name='test-notif',default='false',help='Test notification settings.'"`
|
TestNotif bool `kong:"name='test-notif',env='TEST_NOTIF',default='false',help='Test notification settings.'"`
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user