somratpro commited on
Commit
a73191b
·
1 Parent(s): 4509401

feat: add conditional verbose logging support for OpenClaw gateway via GATEWAY_VERBOSE environment variable

Browse files
Files changed (1) hide show
  1. start.sh +6 -2
start.sh CHANGED
@@ -353,9 +353,13 @@ KEEP_ALIVE_PID=$!
353
  echo "🚀 Launching OpenClaw gateway on port 7860..."
354
  echo ""
355
 
 
 
 
 
 
356
 
357
-
358
- openclaw gateway run --port 7860 --bind lan --verbose 2>&1 | tee -a /home/node/.openclaw/gateway.log &
359
  GATEWAY_PID=$!
360
 
361
  # Wait a moment for startup errors
 
353
  echo "🚀 Launching OpenClaw gateway on port 7860..."
354
  echo ""
355
 
356
+ GATEWAY_ARGS=(gateway run --port 7860 --bind lan)
357
+ if [ "${GATEWAY_VERBOSE:-0}" = "1" ]; then
358
+ GATEWAY_ARGS+=(--verbose)
359
+ echo "🔎 Gateway verbose logging enabled (GATEWAY_VERBOSE=1)"
360
+ fi
361
 
362
+ openclaw "${GATEWAY_ARGS[@]}" 2>&1 | tee -a /home/node/.openclaw/gateway.log &
 
363
  GATEWAY_PID=$!
364
 
365
  # Wait a moment for startup errors