@@ -114,7 +114,7 @@ def processCommand(self,command,data=None):
114
114
115
115
def reloadSettings (self ):
116
116
self .readerOn = not util .getSetting ('reader_off' ,False )
117
- util .DEBUG = util . getSetting ( 'debug_logging' , True )
117
+ util .reload ( )
118
118
self .speakListCount = util .getSetting ('speak_list_count' ,True )
119
119
self .autoItemExtra = False
120
120
if util .getSetting ('auto_item_extra' ,False ):
@@ -283,7 +283,7 @@ def end(self):
283
283
import threading
284
284
util .LOG ('Remaining Threads:' )
285
285
for t in threading .enumerate ():
286
- util .LOG (' {0}' .format (t .name ))
286
+ util .DEBUG_LOG (' {0}' .format (t .name ))
287
287
288
288
def shutdown (self ):
289
289
self .stop = True
@@ -364,12 +364,14 @@ def sayItemExtra(self,interrupt=True):
364
364
def sayText (self ,text ,interrupt = False ):
365
365
assert isinstance (text ,unicode ), "Not Unicode"
366
366
if self .tts .dead : return self .fallbackTTS (self .tts .deadReason )
367
+ util .VERBOSE_LOG (repr (text ))
367
368
self .tts .say (self .cleanText (text ),interrupt )
368
369
369
370
def sayTexts (self ,texts ,interrupt = True ):
370
371
if not texts : return
371
372
assert all (isinstance (t ,unicode ) for t in texts ), "Not Unicode"
372
373
if self .tts .dead : return self .fallbackTTS (self .tts .deadReason )
374
+ util .VERBOSE_LOG (repr (texts ))
373
375
self .tts .sayList (self .cleanText (texts ),interrupt = interrupt )
374
376
375
377
def insertPause (self ,ms = 500 ):
@@ -408,7 +410,7 @@ def checkWindow(self,newN):
408
410
self .winID = winID
409
411
self .updateWindowReader ()
410
412
if util .DEBUG :
411
- util .LOG ('Window ID: {0} Handler: {1} File: {2}' .format (winID ,self .windowReader .ID ,xbmc .getInfoLabel ('Window.Property(xmlfile)' )))
413
+ util .DEBUG_LOG ('Window ID: {0} Handler: {1} File: {2}' .format (winID ,self .windowReader .ID ,xbmc .getInfoLabel ('Window.Property(xmlfile)' )))
412
414
413
415
name = self .windowReader .getName ()
414
416
if name :
@@ -435,7 +437,7 @@ def checkControl(self,newW):
435
437
controlID = self .window ().getFocusId ()
436
438
if controlID == self .controlID : return newW
437
439
if util .DEBUG :
438
- util .LOG ('Control: %s' % controlID )
440
+ util .DEBUG_LOG ('Control: %s' % controlID )
439
441
self .controlID = controlID
440
442
if not controlID : return newW
441
443
return True
0 commit comments