summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2023-08-06 22:57:16 +0200
committerValery Piashchynski <[email protected]>2023-08-06 22:57:16 +0200
commitd5886b45fa3d8e65f6217f8f37fe848d6355c851 (patch)
tree6634496990556b9f1cf86a6e652d559632095299 /lib
parent3bf88db8a91fcb79fb46c80abdbf55ab8d4a9f8f (diff)
feature: sd_notify support
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'lib')
-rw-r--r--lib/roadrunner.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/roadrunner.go b/lib/roadrunner.go
index f030f526..7f2d32a2 100644
--- a/lib/roadrunner.go
+++ b/lib/roadrunner.go
@@ -45,7 +45,12 @@ func NewRR(cfgFile string, override []string, pluginList []any) (*RR, error) {
endureOptions = append(endureOptions, endure.Visualize())
}
- endureContainer := endure.New(containerCfg.LogLevel, endureOptions...)
+ // create endure container
+ ll, err := container.ParseLogLevel(containerCfg.LogLevel)
+ if err != nil {
+ return nil, err
+ }
+ endureContainer := endure.New(ll, endureOptions...)
// register another container plugins
err = endureContainer.RegisterAll(append(pluginList, cfg)...)