From e972002b7a89f620e2c1aa7db46d39d7aa2701a7 Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Sun, 25 Apr 2021 22:54:01 +0200 Subject: [PATCH] Make profiler optional (#341) Co-authored-by: CrazyMax --- internal/model/cli.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/model/cli.go b/internal/model/cli.go index ab0ffda1..c0d32b34 100644 --- a/internal/model/cli.go +++ b/internal/model/cli.go @@ -7,7 +7,7 @@ type Cli struct { Version kong.VersionFlag Cfgfile string `kong:"name='config',env='CONFIG',help='Diun configuration file.'"` ProfilerPath string `kong:"name='profiler-path',env='PROFILER_PATH',help='Base path where profiling files are written.'"` - Profiler string `kong:"name='profiler',env='PROFILER',enum='cpu,mem,alloc,heap,routines,mutex,threads,block',help='Profiler to use.'"` + Profiler string `kong:"name='profiler',env='PROFILER',help='Profiler to use.'"` 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.'"` LogCaller bool `kong:"name='log-caller',env='LOG_CALLER',default='false',help='Add file:line of the caller to log output.'"`