Add more debug logging and fix loop_count scope issue
This commit is contained in:
parent
31e515ecd1
commit
4961b9391c
1 changed files with 5 additions and 1 deletions
|
|
@ -307,9 +307,11 @@ cleanup() {
|
||||||
# Set up signal handlers
|
# Set up signal handlers
|
||||||
trap cleanup SIGINT SIGTERM
|
trap cleanup SIGINT SIGTERM
|
||||||
|
|
||||||
|
# Global variable for loop count (needed by cleanup function)
|
||||||
|
loop_count=0
|
||||||
|
|
||||||
# Main loop
|
# Main loop
|
||||||
main() {
|
main() {
|
||||||
local loop_count=0
|
|
||||||
|
|
||||||
log_status "SUCCESS" "🚀 Ralph loop starting with Claude Code"
|
log_status "SUCCESS" "🚀 Ralph loop starting with Claude Code"
|
||||||
log_status "INFO" "Max calls per hour: $MAX_CALLS_PER_HOUR"
|
log_status "INFO" "Max calls per hour: $MAX_CALLS_PER_HOUR"
|
||||||
|
|
@ -340,9 +342,11 @@ main() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
log_status "INFO" "Starting main loop..."
|
log_status "INFO" "Starting main loop..."
|
||||||
|
log_status "INFO" "DEBUG: About to enter while loop, loop_count=$loop_count"
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
((loop_count++))
|
((loop_count++))
|
||||||
|
log_status "INFO" "DEBUG: Successfully incremented loop_count to $loop_count"
|
||||||
log_status "INFO" "Loop #$loop_count - calling init_call_tracking..."
|
log_status "INFO" "Loop #$loop_count - calling init_call_tracking..."
|
||||||
init_call_tracking
|
init_call_tracking
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue