-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into 5913-fix-safesearch-ipv6-better
- Loading branch information
Showing
10 changed files
with
554 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# AdGuard Home v0.108.0 Changelog DRAFT | ||
|
||
This changelog should be merged into the main one once the next API matures | ||
enough. | ||
|
||
## [v0.108.0] - TODO | ||
|
||
### Added | ||
|
||
- The ability to log to stderr using `--logFile=stderr`. | ||
- The new `--web-addr` flag to set the Web UI address in a `host:port` form. | ||
- `SIGHUP` now reloads all configuration from the configuration file ([#5676]). | ||
|
||
### Changed | ||
|
||
#### New HTTP API | ||
|
||
**TODO(a.garipov):** Describe the new API and add a link to the new OpenAPI doc. | ||
|
||
#### Other changes | ||
|
||
- `-h` is now an alias for `--help` instead of the removed `--host`, see below. | ||
Use `--web-addr=host:port` to set an address on which to serve the Web UI. | ||
|
||
### Fixed | ||
|
||
- Inconsistent application of `--work-dir/-w` ([#2598], [#2902]). | ||
- The order of `-v/--verbose` and `--version` being significant ([#2893]). | ||
|
||
### Removed | ||
|
||
- The deprecated `--no-mem-optimization` and `--no-etc-hosts` flags. | ||
- `--host` and `-p/--port` flags. Use `--web-addr=host:port` to set an address | ||
on which to serve the Web UI. `-h` is now an alias for `--help`, see above. | ||
|
||
[#2598]: https://github.com/AdguardTeam/AdGuardHome/issues/2598 | ||
[#2893]: https://github.com/AdguardTeam/AdGuardHome/issues/2893 | ||
[#2902]: https://github.com/AdguardTeam/AdGuardHome/issues/2902 | ||
[#5676]: https://github.com/AdguardTeam/AdGuardHome/issues/5676 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package cmd | ||
|
||
import ( | ||
"fmt" | ||
"os" | ||
|
||
"github.com/AdguardTeam/AdGuardHome/internal/aghos" | ||
"github.com/AdguardTeam/golibs/log" | ||
) | ||
|
||
// syslogServiceName is the name of the AdGuard Home service used for writing | ||
// logs to the system log. | ||
const syslogServiceName = "AdGuardHome" | ||
|
||
// setLog sets up the text logging. | ||
// | ||
// TODO(a.garipov): Add parameters from configuration file. | ||
func setLog(opts *options) (err error) { | ||
switch opts.confFile { | ||
case "stdout": | ||
log.SetOutput(os.Stdout) | ||
case "stderr": | ||
log.SetOutput(os.Stderr) | ||
case "syslog": | ||
err = aghos.ConfigureSyslog(syslogServiceName) | ||
if err != nil { | ||
return fmt.Errorf("initializing syslog: %w", err) | ||
} | ||
default: | ||
// TODO(a.garipov): Use the path. | ||
} | ||
|
||
if opts.verbose { | ||
log.SetLevel(log.DEBUG) | ||
log.Debug("verbose logging enabled") | ||
} | ||
|
||
return nil | ||
} |
Oops, something went wrong.