Because IFS is not set in `_log_write()`, logging functions silently
drop whitespace from the beginning and end of each line.
This commit modifies `_log_write()` to set IFS to the empty string
when invoking `read`, so that whitespaces are not stripped.
echo "$timestamp $$ $prefix $line" 1>&2
done
else
- while read -r line; do
+ while IFS="" read -r line; do
_log_write "$level" "$prefix" "$line"
done
fi