mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
Moar logging tweaks
This commit is contained in:
parent
90935cdc6d
commit
9823ed5aaa
3 changed files with 5 additions and 2 deletions
|
@ -16,6 +16,9 @@ TEST_CONTEXT="./.tmp_test_context"
|
||||||
rm -rf $TEST_CONTEXT
|
rm -rf $TEST_CONTEXT
|
||||||
mkdir -p $TEST_CONTEXT
|
mkdir -p $TEST_CONTEXT
|
||||||
|
|
||||||
|
# Redirect fd 3 (=debug steam) to complete log
|
||||||
|
exec 3>>$complete_log
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# Starting and checking
|
# Starting and checking
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -66,7 +66,7 @@ function log_small_title()
|
||||||
|
|
||||||
function log_debug()
|
function log_debug()
|
||||||
{
|
{
|
||||||
echo "$1"
|
echo "$1" >&3
|
||||||
}
|
}
|
||||||
|
|
||||||
function log_info()
|
function log_info()
|
||||||
|
|
|
@ -30,7 +30,7 @@ RUN_YUNOHOST_CMD() {
|
||||||
# --output-as none is to disable the json-like output for some commands like backup create
|
# --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" \
|
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 --line-buffered -v --extended-regexp '^[0-9]+\s+.{1,15}DEBUG' \
|
||||||
| grep -v 'processing action'
|
| grep --line-buffered -v 'processing action'
|
||||||
|
|
||||||
returncode=${PIPESTATUS[0]}
|
returncode=${PIPESTATUS[0]}
|
||||||
check_witness_files
|
check_witness_files
|
||||||
|
|
Loading…
Add table
Reference in a new issue