[mythtv-commits] Ticket #2666: Add new debug level; reduce repetitive debug messages

MythTV mythtv at cvs.mythtv.org
Tue Nov 7 19:52:17 UTC 2006

#2666: Add new debug level; reduce repetitive debug messages
 Reporter:  derek at battams.ca  |       Owner:  ijr    
     Type:  patch             |      Status:  new    
 Priority:  minor             |   Milestone:  unknown
Component:  mythtv            |     Version:  head   
 Severity:  medium            |  
 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.

Ticket URL: <http://svn.mythtv.org/trac/ticket/2666>
MythTV <http://www.mythtv.org/>

More information about the mythtv-commits mailing list