You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeah, I agree this is kind of odd, although I'm not sure it is technically wrong. It is a result of using Go's default logger. I'm not sure we'd want to change it at this point. #119 is related.
Technically I think nothing is wrong. But from an automation perspective this doesn't make sense. If lasterror is 0 the version should be printed to stdout. Currently hard to process output in scripts since you need to capture both stdin and stderr to see if any output is generated independent on the error code
All geoipupdate output is written to stderr instead of stdout, even on success:
{ { geoipupdate --version; } 2>&3 | sed 's/^/STDOUT: /'; } 3>&1 1>&2 | sed 's/^/STDERR: /'
{ { geoipupdate -h; } 2>&3 | sed 's/^/STDOUT: /'; } 3>&1 1>&2 | sed 's/^/STDERR: /'
The text was updated successfully, but these errors were encountered: