mr-karan / doggo

:dog: Command-line DNS Client for Humans. Written in Golang
https://doggo.mrkaran.dev/
GNU General Public License v3.0
2.83k stars 100 forks source link

fix(logger): Change log destination to stderr #141

Closed gabe565 closed 1 month ago

gabe565 commented 1 month ago

Logs are currently sent to stdout, which isn't ideal if doggo is used in shell scripts. If doggo fails and the exit code is not checked, then the error log will be assigned to a variable. This PR changes logs to write to os.Stderr.

mr-karan commented 1 month ago

Makes sense, thanks for the fix!