Skip to content
Snippets Groups Projects
Commit a1a6f687 authored by David Trattnig's avatar David Trattnig
Browse files

Disable mail event covered by on_sick(..). #38

parent 0f7898ad
No related branches found
No related tags found
No related merge requests found
...@@ -138,7 +138,7 @@ class PlayerConnector(): ...@@ -138,7 +138,7 @@ class PlayerConnector():
raise e raise e
else: else:
self.event_dispatcher.on_critical("Criticial Liquidsoap connection issue", \ self.event_dispatcher.on_critical("Criticial Liquidsoap connection issue", \
"Could not connect to Liquidsoap (Multiple attempts)", e) "Could not connect to Liquidsoap after multiple attempts", e)
raise e raise e
...@@ -167,7 +167,8 @@ class PlayerConnector(): ...@@ -167,7 +167,8 @@ class PlayerConnector():
subject = "CRITICAL Exception when connecting to Liquidsoap" subject = "CRITICAL Exception when connecting to Liquidsoap"
msg = "socket file " + socket.socket_path + " not found. Is liquidsoap running?" msg = "socket file " + socket.socket_path + " not found. Is liquidsoap running?"
self.logger.critical(SU.red(msg)) self.logger.critical(SU.red(msg))
self.event_dispatcher.on_critical(subject, msg, None) # Not using this for now, as it should be triggered by "on_sick(..)" as well
#self.event_dispatcher.on_critical(subject, msg, None)
# ------------------------------------------------------------------------------------------ # # ------------------------------------------------------------------------------------------ #
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment