Opened 17 years ago
Closed 17 years ago
#2666 closed patch (fixed)
Add idle debug level
Reported by: | 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)
Change History (3)
Changed 17 years ago by
Attachment: | vb_idle.patch added |
---|
comment:1 Changed 17 years ago by
Milestone: | unknown → 0.21 |
---|---|
Owner: | changed from Isaac Richards to Janne Grunau |
Summary: | Add new debug level; reduce repetitive debug messages → Add idle debug level |
add new debug level, VB_IDLE