From 1972af1fd9307a5e9c21b1b166ed3638c46dfdb4 Mon Sep 17 00:00:00 2001 From: Riccardo Balbo Date: Tue, 31 Dec 2024 01:49:54 +0100 Subject: [PATCH] filter out POST /api/graphql spam from sndev logs (#1780) * filter out POST /api/graphql spam from sndev logs * don't use -P in grep --- sndev | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sndev b/sndev index 5d3ad800..a0fc1dcc 100755 --- a/sndev +++ b/sndev @@ -7,6 +7,10 @@ if [ -f .env.local ]; then . ./.env.local fi +logFilter() { + grep -v --line-buffered --color=never 'POST /api/graphql .*200' +} + docker__compose() { if [ ! -x "$(command -v docker)" ]; then echo "docker compose is not installed" @@ -128,7 +132,7 @@ OPTIONS" sndev__logs() { shift if [ $# -eq 1 ]; then - docker__compose logs -t --tail=1000 -f "$@" + docker__compose logs -t --tail=1000 -f "$@" | logFilter exit 0 fi