From d669c78c4306290963415568f4a64a1ae2b35b20 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Tue, 26 Jan 2021 23:05:48 +0100 Subject: device: combine debug and info log levels into 'verbose' There are very few cases, if any, in which a user only wants one of these levels, so combine it into a single level. While we're at it, reduce indirection on the loggers by using an empty function rather than a nil function pointer. It's not like we have retpolines anyway, and we were always calling through a function with a branch prior, so this seems like a net gain. Signed-off-by: Jason A. Donenfeld --- tests/netns.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/netns.sh') diff --git a/tests/netns.sh b/tests/netns.sh index 02d428b..2f2a2cd 100755 --- a/tests/netns.sh +++ b/tests/netns.sh @@ -36,7 +36,7 @@ netns0="wg-test-$$-0" netns1="wg-test-$$-1" netns2="wg-test-$$-2" program=$1 -export LOG_LEVEL="info" +export LOG_LEVEL="verbose" pretty() { echo -e "\x1b[32m\x1b[1m[+] ${1:+NS$1: }${2}\x1b[0m" >&3; } pp() { pretty "" "$*"; "$@"; } -- cgit v1.2.3