mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 00:39:13 +00:00
fix(diagnostics): profiling config flags (#1637)
This commit is contained in:
parent
b681846b51
commit
34d6e0cf60
3 changed files with 8 additions and 8 deletions
|
@ -88,7 +88,7 @@ sessionSecret = "{{ .sessionSecret }}"
|
|||
|
||||
# Golang pprof profiling and tracing
|
||||
#
|
||||
#profiling = false
|
||||
#profilingEnabled = false
|
||||
#
|
||||
#profilingHost = "127.0.0.1"
|
||||
#
|
||||
|
@ -315,7 +315,7 @@ func (c *AppConfig) loadFromEnv() {
|
|||
c.Config.PostgresExtraParams = v
|
||||
}
|
||||
|
||||
if v := os.Getenv(prefix + "PROFILING"); v != "" {
|
||||
if v := os.Getenv(prefix + "PROFILING_ENABLED"); v != "" {
|
||||
c.Config.ProfilingEnabled = strings.EqualFold(strings.ToLower(v), "true")
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue