-Remove unused logging statements
This commit is contained in:
parent
141002eb49
commit
9744507078
1 changed files with 1 additions and 6 deletions
|
@ -121,7 +121,6 @@ class PypoPush(Thread):
|
||||||
schedule_tracker = open(self.schedule_tracker_file, "w")
|
schedule_tracker = open(self.schedule_tracker_file, "w")
|
||||||
pickle.dump(playedItems, schedule_tracker)
|
pickle.dump(playedItems, schedule_tracker)
|
||||||
schedule_tracker.close()
|
schedule_tracker.close()
|
||||||
#logger.debug("Wrote schedule to disk: "+str(json.dumps(playedItems)))
|
|
||||||
|
|
||||||
# Call API to update schedule states
|
# Call API to update schedule states
|
||||||
logger.debug("Doing callback to server to update 'played' status.")
|
logger.debug("Doing callback to server to update 'played' status.")
|
||||||
|
@ -134,7 +133,6 @@ class PypoPush(Thread):
|
||||||
currently_on_air = True
|
currently_on_air = True
|
||||||
else:
|
else:
|
||||||
pass
|
pass
|
||||||
#logger.debug('Empty schedule')
|
|
||||||
|
|
||||||
if not currently_on_air and self.liquidsoap_state_play:
|
if not currently_on_air and self.liquidsoap_state_play:
|
||||||
logger.debug('Notifying Liquidsoap to stop playback.')
|
logger.debug('Notifying Liquidsoap to stop playback.')
|
||||||
|
@ -192,7 +190,6 @@ class PypoPush(Thread):
|
||||||
logger.debug('Preparing to push playlist %s' % pkey)
|
logger.debug('Preparing to push playlist %s' % pkey)
|
||||||
for item in playlist:
|
for item in playlist:
|
||||||
annotate = str(item['annotate'])
|
annotate = str(item['annotate'])
|
||||||
#logger.debug(annotate)
|
|
||||||
tn.write(('queue.push %s\n' % annotate).encode('latin-1'))
|
tn.write(('queue.push %s\n' % annotate).encode('latin-1'))
|
||||||
tn.write(('vars.show_name %s\n' % item['show_name']).encode('latin-1'))
|
tn.write(('vars.show_name %s\n' % item['show_name']).encode('latin-1'))
|
||||||
|
|
||||||
|
@ -209,7 +206,6 @@ class PypoPush(Thread):
|
||||||
|
|
||||||
def load_schedule_tracker(self):
|
def load_schedule_tracker(self):
|
||||||
logger = logging.getLogger('push')
|
logger = logging.getLogger('push')
|
||||||
#logger.debug('load_schedule_tracker')
|
|
||||||
playedItems = dict()
|
playedItems = dict()
|
||||||
|
|
||||||
# create the file if it doesnt exist
|
# create the file if it doesnt exist
|
||||||
|
@ -222,7 +218,6 @@ class PypoPush(Thread):
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
logger.error('Error creating schedule tracker file: %s', e)
|
logger.error('Error creating schedule tracker file: %s', e)
|
||||||
else:
|
else:
|
||||||
#logger.debug('schedule tracker file exists, opening: ' + self.schedule_tracker_file)
|
|
||||||
try:
|
try:
|
||||||
schedule_tracker = open(self.schedule_tracker_file, "r")
|
schedule_tracker = open(self.schedule_tracker_file, "r")
|
||||||
playedItems = pickle.load(schedule_tracker)
|
playedItems = pickle.load(schedule_tracker)
|
||||||
|
@ -243,6 +238,6 @@ class PypoPush(Thread):
|
||||||
loops = 0
|
loops = 0
|
||||||
try: self.push('scheduler')
|
try: self.push('scheduler')
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
logger.error('Pypo Push Error, exiting: %s', e)
|
logger.error('Pypo Push Exception: %s', e)
|
||||||
time.sleep(PUSH_INTERVAL)
|
time.sleep(PUSH_INTERVAL)
|
||||||
loops += 1
|
loops += 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue