Opened 17 years ago

Closed 17 years ago

#2666 closed patch (fixed)

Add idle debug level

Reported by: derek@… Owned by: Janne Grunau
Priority: minor Milestone: 0.21
Component: mythtv Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

When the backend detects it's idle and is ready to shutdown it posts a debug message saying so along with a countdown every 10 seconds. I have a pre-shutdown check script that runs and prevents the shutdown between 2-5am daily as I have scheduled activities during this time (db backup, mfdb run, transcoding jobs, etc.). So when the shutdown is prevented it resets the idle timer, which starts the countdown over and continuously fills the log with these countdown messages.

The attached patch creates a new debug level called 'VB_IDLE' and filters the countdown messages to this debug level and adds some new debug messages as well. This reduces the redundant debug messages from filling up my logs every night and only writes the log messages when explicitly asked for (usually in a debug situation). The initial message is left at a VB_IMPORTANT level, the rest (along with the new debug messages I added) are moved to VB_IDLE.

Attachments (1)

vb_idle.patch (2.9 KB) - added by derek@… 17 years ago.
add new debug level, VB_IDLE

Download all attachments as: .zip

Change History (3)

Changed 17 years ago by derek@…

Attachment: vb_idle.patch added

add new debug level, VB_IDLE

comment:1 Changed 17 years ago by Janne Grunau

Milestone: unknown0.21
Owner: changed from Isaac Richards to Janne Grunau
Summary: Add new debug level; reduce repetitive debug messagesAdd idle debug level

comment:2 Changed 17 years ago by Janne Grunau

Resolution: fixed
Status: newclosed

(In [13254]) Fixes #2666. Adds VB_IDLE for shutdown related messages

Note: See TracTickets for help on using tickets.