[core] Disable cpu-prof when WAHA_DEBUG_MODE=true

fix #1681
This commit is contained in:
devlikepro committed 2025-12-01 11:46:53 +07:00
1 parent 18ce902c60
commit 4e78d559a8
1 file changed
-10
-10
View File
@@ -70,16 +70,6 @@ else
fi
fi
#
# Enable CPU profiling
#
if [ "$WAHA_DEBUG_MODE" = "true" ] || [ "$WAHA_DEBUG_MODE" = "True" ] || [ "$WAHA_DEBUG_MODE" = "1" ]; then
case " $NODE_OPTIONS " in
*" --cpu-prof "*) ;;
*) export NODE_OPTIONS="${NODE_OPTIONS:+$NODE_OPTIONS }--cpu-prof" ;;
esac
fi
#
# Start your application using node with exec to ensure proper signal handling
#