AdguardTeam / AdGuardDNSClient

Client tool for AdGuard DNS
https://adguard-dns.io
Apache License 2.0
62 stars 2 forks source link

System log on macOS doesn't receive messages #3

Open EugeneOne1 opened 3 months ago

EugeneOne1 commented 3 months ago

Prerequisites

Platform (OS and CPU architecture)

Darwin (aka macOS), AMD64 (aka x86_64)

Installation

GitHub releases

Setup

On a personal machine

AdGuard DNS Client version

v0.0.1

Action

Without any configuration run:

cd /Applications/AdGuardDNSClient
sudo env LOG_OUTPUT=syslog ./AdGuardDNSClient

Expected result

An error message in the Console app:

level=ERROR msg="fatal error" err="parsing configuration: open /Applications/AdGuardDNSClient/config.yaml: no such file or directory"

Actual result

No mentions of AdGuardDNSClient process.

Additional information and/or screenshots

May be related to https://github.com/golang/go/issues/59229.

ainar-g commented 3 months ago

Both workarounds are quite suboptimal. Rescheduling to v0.1.0. Perhaps we'll figure something out by then.

EugeneOne1 commented 2 months ago

As per a51b997a6e5f5212ebd0afbeaf9698385daaef7f, we've implemented logging to the system logger via the /usr/bin/logger utility. This issue will remain open until the mentioned Go issue is resolved.