From 8fa32ae5a185ebf12dc2d78c61a464739ea3926d Mon Sep 17 00:00:00 2001 From: tapframe <85391825+tapframe@users.noreply.github.com> Date: Wed, 8 Jul 2026 16:54:19 +0530 Subject: [PATCH] ref: update debug_logs.sh --- scripts/debug_logs.sh | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/scripts/debug_logs.sh b/scripts/debug_logs.sh index e86ca2e6..7f2014be 100755 --- a/scripts/debug_logs.sh +++ b/scripts/debug_logs.sh @@ -9,14 +9,15 @@ # ./scripts/debug_logs.sh [options] # # Options: -# -s, --serial ADB device serial (optional, for multi-device) -# -t, --tag Additional logcat tag filter regex (default: all app) -# -c, --clear Clear logcat buffer before streaming -# -h, --help Show help +# -s, --serial ADB device serial (optional, for multi-device) +# -p, --package Android package/applicationId (default: debug build) +# -t, --tag Additional logcat tag filter regex (default: all app) +# -c, --clear Clear logcat buffer before streaming +# -h, --help Show help # ───────────────────────────────────────────────────────────────────────────── set -uo pipefail -PACKAGE="com.nuvio.app" +PACKAGE="${NUVIO_LOG_PACKAGE:-com.nuviodebug.com}" SERIAL="" CLEAR_BUFFER=false TAG_FILTER="" @@ -58,10 +59,11 @@ Usage: ./scripts/debug_logs.sh [options] Stream live colour-coded ADB logs for Nuvio debug builds. Options: - -s, --serial ADB device serial (optional) - -t, --tag Additional grep regex to filter log tags - -c, --clear Clear logcat buffer before streaming - -h, --help Show this help + -s, --serial ADB device serial (optional) + -p, --package Android package/applicationId (default: com.nuviodebug.com) + -t, --tag Additional grep regex to filter log tags + -c, --clear Clear logcat buffer before streaming + -h, --help Show this help Hotkeys (while running): C Clear all logs currently shown in the terminal @@ -70,6 +72,7 @@ Hotkeys (while running): Examples: ./scripts/debug_logs.sh ./scripts/debug_logs.sh --serial emulator-5554 + ./scripts/debug_logs.sh --package com.nuvio.app ./scripts/debug_logs.sh --tag 'MetaDetailsRepo|SeriesContent' ./scripts/debug_logs.sh --clear --tag 'Sync|Auth' EOF @@ -79,6 +82,7 @@ EOF while [[ $# -gt 0 ]]; do case "$1" in -s|--serial) SERIAL="${2:-}"; shift 2 ;; + -p|--package) PACKAGE="${2:-}"; shift 2 ;; -t|--tag) TAG_FILTER="${2:-}"; shift 2 ;; -c|--clear) CLEAR_BUFFER=true; shift ;; -h|--help) usage; exit 0 ;;