X-Git-Url: https://git.rvb.name/vpproxy.git/blobdiff_plain/3893699c9a2984576b62b6c3f1eb77f34a4cf0ab..1074f7e8729c2ff065d73960c5450c9356c2fd11:/vlcclient/vlcclient.py diff --git a/vlcclient/vlcclient.py b/vlcclient/vlcclient.py index 048fd2f..dbe6f3f 100644 --- a/vlcclient/vlcclient.py +++ b/vlcclient/vlcclient.py @@ -98,13 +98,16 @@ class VlcClient(object): pass def _write(self, message): + + logger = logging.getLogger("VlcClient_write") + # Return if in the middle of destroying if self._shuttingDown.isSet(): return try: # Write message - print 'VLC command:',message + logger.debug('VLC command:',message) self._socket.write(message + "\r\n") except EOFError as e: raise VlcException("Vlc Write error! ERROR: " + repr(e)) @@ -150,7 +153,7 @@ class VlcClient(object): logger.debug("Broadcast stopped") def startBroadcast(self, stream_name, input, muxer='ts', pre_access='', qtype='default'): - print "Starting broadcast......" + logger.debig("Starting broadcast......") return self._broadcast(True, stream_name, input, muxer, pre_access, qtype) def stopBroadcast(self, stream_name):