2019-07-29 10:15:03 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
2020-12-28 11:46:53 +00:00
|
|
|
# shellcheck source=../shell_config.sh
|
2020-08-01 00:51:12 +00:00
|
|
|
. "$CURDIR"/../shell_config.sh
|
2019-07-29 10:15:03 +00:00
|
|
|
|
2020-10-21 16:29:21 +00:00
|
|
|
${CLICKHOUSE_CLIENT_BINARY} --send_logs_level="trace" --query="SELECT 1" 2>&1 | awk '{ print $8 }' | grep "Trace" | head -n 1
|
2019-07-29 10:15:03 +00:00
|
|
|
echo "."
|
2020-10-21 16:29:21 +00:00
|
|
|
${CLICKHOUSE_CLIENT_BINARY} --send_logs_level="debug" --query="SELECT 1" 2>&1 | awk '{ print $8 }' | grep "Debug" | head -n 1
|
2019-07-29 10:15:03 +00:00
|
|
|
echo "."
|
2020-10-21 16:29:21 +00:00
|
|
|
${CLICKHOUSE_CLIENT_BINARY} --send_logs_level="information" --query="SELECT 1" 2>&1 | awk '{ print $8 }' | grep "Information" | head -n 1
|
2019-07-29 10:15:03 +00:00
|
|
|
echo "."
|
2020-10-21 16:29:21 +00:00
|
|
|
${CLICKHOUSE_CLIENT_BINARY} --send_logs_level="error" --query="SELECT throwIf(1)" 2>&1 | awk '{ print $8 }' | grep "Error" | head -n 1
|
2019-07-29 10:15:03 +00:00
|
|
|
echo "-"
|
2020-10-21 16:29:21 +00:00
|
|
|
${CLICKHOUSE_CLIENT_BINARY} --send_logs_level="debug" --query="SELECT 1" 2>&1 | awk '{ print $8 }' | grep "Trace" | head -n 1
|
2019-07-29 10:15:03 +00:00
|
|
|
echo "."
|
2020-10-21 16:29:21 +00:00
|
|
|
${CLICKHOUSE_CLIENT_BINARY} --send_logs_level="information" --query="SELECT 1" 2>&1 | awk '{ print $8 }' | grep "Debug\|Trace" | head -n 1
|
2019-07-29 10:15:03 +00:00
|
|
|
echo "."
|
2020-10-21 16:29:21 +00:00
|
|
|
${CLICKHOUSE_CLIENT_BINARY} --send_logs_level="error" --query="SELECT throwIf(1)" 2>&1 | awk '{ print $8 }' | grep "Debug\|Trace\|Information" | head -n 1
|
2019-07-29 10:15:03 +00:00
|
|
|
echo "."
|
2020-10-21 16:29:21 +00:00
|
|
|
${CLICKHOUSE_CLIENT_BINARY} --send_logs_level="None" --query="SELECT throwIf(1)" 2>&1 | awk '{ print $8 }' | grep "Debug\|Trace\|Information\|Error" | head -n 1
|