mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-25 15:35:38 +00:00
Make writing to log file and showing terminal output depending on logging level
This commit is contained in:
parent
3d19ea6a14
commit
2e1a461855
|
@ -85,6 +85,7 @@ log() {
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
if [[ ! $logging_level == "none" ]]; then
|
||||||
# Display the message in the terminal
|
# Display the message in the terminal
|
||||||
echo -e "$colored_message" >&2
|
echo -e "$colored_message" >&2
|
||||||
|
|
||||||
|
@ -94,5 +95,5 @@ log() {
|
||||||
touch "$logfile"
|
touch "$logfile"
|
||||||
fi
|
fi
|
||||||
echo "$log_message" >> "$logfile"
|
echo "$log_message" >> "$logfile"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue