-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running into issues with logging on Ubuntu 16.04 #15
Comments
Also reproducible on Ubuntu 20.04:
|
Seems to be because of this line at the very top of set -euo pipefail Removing this line seems to let things work as they should, but I'm not enough of a bash expert to know if removing it will break something else. The actual bit of code that is breaking is here, in [[ $# -ne 0 ]] && _MSG="$@" || _MSG="$(cat)"
if [[ "$LS_OUTPUT" = "/dev/stdout" ]] ; then
echo -ne "$_LS_LEVEL_BEGIN$OUTPUT "
echo -ne "$_MSG"
echo -e "$_LS_LEVEL_END"
elif [[ "$LS_OUTPUT" = "/dev/stderr" ]] ; then
echo -ne "$_LS_LEVEL_BEGIN$OUTPUT " >&2
echo -ne "$_MSG" >&2
echo -e "$_LS_LEVEL_END" >&2
else
echo -ne "$_LS_LEVEL_BEGIN$OUTPUT " >> "$LS_OUTPUT"
echo -n "$_MSG" >> "$LS_OUTPUT"
echo -e "$_LS_LEVEL_END" >> "$LS_OUTPUT"
fi Things break on the line |
Running
av apply --log-level debug
(working) gives different result thanav apply
(broken).Not providing a log level argument causes the following error:
Here is a minimal example to reproduce the issue: https://github.com/tinoadams/aviary-test
The text was updated successfully, but these errors were encountered: