mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
fix(config): log level change causes panic (#1296)
This commit is contained in:
parent
365055fbe1
commit
17e97201fd
1 changed files with 3 additions and 1 deletions
|
@ -171,7 +171,9 @@ type AppConfig struct {
|
|||
}
|
||||
|
||||
func New(configPath string, version string) *AppConfig {
|
||||
c := &AppConfig{}
|
||||
c := &AppConfig{
|
||||
m: new(sync.Mutex),
|
||||
}
|
||||
c.defaults()
|
||||
c.Config.Version = version
|
||||
c.Config.ConfigPath = configPath
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue