Moar logging tweaks

This commit is contained in:
Alexandre Aubin 2020-12-07 16:00:10 +01:00
parent 90935cdc6d
commit 9823ed5aaa
3 changed files with 5 additions and 2 deletions

View file

@ -16,6 +16,9 @@ TEST_CONTEXT="./.tmp_test_context"
rm -rf $TEST_CONTEXT
mkdir -p $TEST_CONTEXT
# Redirect fd 3 (=debug steam) to complete log
exec 3>>$complete_log
#=================================================
# Starting and checking
#=================================================

View file

@ -66,7 +66,7 @@ function log_small_title()
function log_debug()
{
echo "$1"
echo "$1" >&3
}
function log_info()

View file

@ -30,7 +30,7 @@ RUN_YUNOHOST_CMD() {
# --output-as none is to disable the json-like output for some commands like backup create
LXC_START "sudo PACKAGE_CHECK_EXEC=1 yunohost --output-as none --debug $1" \
| grep --line-buffered -v --extended-regexp '^[0-9]+\s+.{1,15}DEBUG' \
| grep -v 'processing action'
| grep --line-buffered -v 'processing action'
returncode=${PIPESTATUS[0]}
check_witness_files