# HG changeset patch # User Pascal Bellard # Date 1359618816 -3600 # Node ID f764974d085e11e85d2326e7362dffafd0c88a80 # Parent acbe3bd390d8f12fa9847a04d70e57d0ddfc5b0f cook: loglimit can be disabled (thanks ernia) diff -r acbe3bd390d8 -r f764974d085e cook --- a/cook Wed Jan 30 09:01:13 2013 +0100 +++ b/cook Thu Jan 31 08:53:36 2013 +0100 @@ -894,7 +894,8 @@ # Truncate stdout log file to $1 Mb. loglimit() { - tee /dev/stderr | dd bs=1024k count=${1:-50} conv=noerror 2> /dev/null + [ -n "$DEFAULT_LOG_LIMIT" ] || return + tee /dev/stderr | dd bs=1024k count=${1:-$DEFAULT_LOG_LIMIT} conv=noerror 2> /dev/null } # diff -r acbe3bd390d8 -r f764974d085e cook.conf --- a/cook.conf Wed Jan 30 09:01:13 2013 +0100 +++ b/cook.conf Thu Jan 31 08:53:36 2013 +0100 @@ -99,3 +99,6 @@ # Old way/tazwok compatibility. BUILD_HOST="$HOST_SYSTEM" SOURCES_REPOSITORY=$SRC + +# Maximum log size in MB per receipt function call (unset it to disable) +DEFAULT_LOG_LIMIT=50