mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-05-06 16:02:55 +03:00
Pull request 2156: 6717-conf-path-logs
Updates #6717. Squashed commit of the following: commit 05a7e18923e987ea9bd6294fe675a22cf86f6dce Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Wed Feb 21 16:44:00 2024 +0300 home: imp docs, logs
This commit is contained in:
parent
4605e7c90e
commit
9276afd79d
4 changed files with 71 additions and 41 deletions
internal/home
|
@ -75,6 +75,8 @@ func getLogSettings(opts options) (ls *logSettings) {
|
|||
if opts.verbose {
|
||||
ls.Verbose = true
|
||||
}
|
||||
|
||||
// TODO(a.garipov): Use cmp.Or in Go 1.22.
|
||||
ls.File = stringutil.Coalesce(opts.logFile, ls.File)
|
||||
|
||||
if opts.runningAsService && ls.File == "" && runtime.GOOS == "windows" {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue