Added traceback so we can find the bug

This commit is contained in:
Keoni Mahelona 2020-03-04 18:44:11 +13:00 committed by Kyle Robbertze
parent 0289f84111
commit 0a9781d138

View file

@ -142,6 +142,7 @@ class TelnetLiquidsoap:
except Exception as e:
self.logger.error(str(e))
self.logger.error(traceback.format_exc())
finally:
self.telnet_lock.release()
@ -161,6 +162,7 @@ class TelnetLiquidsoap:
except Exception as e:
self.logger.error(str(e))
self.logger.error(traceback.format_exc())
finally:
self.telnet_lock.release()
@ -184,6 +186,7 @@ class TelnetLiquidsoap:
self.current_prebuffering_stream_id = None
except Exception as e:
self.logger.error(str(e))
self.logger.error(traceback.format_exc())
finally:
self.telnet_lock.release()
@ -207,6 +210,7 @@ class TelnetLiquidsoap:
self.current_prebuffering_stream_id = media_item['row_id']
except Exception as e:
self.logger.error(str(e))
self.logger.error(traceback.format_exc())
finally:
self.telnet_lock.release()
@ -227,6 +231,7 @@ class TelnetLiquidsoap:
return stream_id
except Exception as e:
self.logger.error(str(e))
self.logger.error(traceback.format_exc())
finally:
self.telnet_lock.release()
@ -265,6 +270,7 @@ class TelnetLiquidsoap:
tn.read_all().decode('utf-8')
except Exception as e:
self.logger.error(str(e))
self.logger.error(traceback.format_exc())
finally:
self.telnet_lock.release()