Исправлена опечатка
[vpproxy.git] / vlcclient / vlcclient.py
index dbe6f3fe395e48466029bc265b7369a4f95c0912..69d9fb92f00507d2b71604ac833d04a4bf741049 100644 (file)
@@ -107,7 +107,7 @@ class VlcClient(object):
 
         try:
             # Write message
 
         try:
             # Write message
-            logger.debug('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))
             self._socket.write(message + "\r\n")
         except EOFError as e:
             raise VlcException("Vlc Write error! ERROR: " + repr(e))
@@ -153,7 +153,8 @@ class VlcClient(object):
             logger.debug("Broadcast stopped")
 
     def startBroadcast(self, stream_name, input, muxer='ts', pre_access='', qtype='default'):
             logger.debug("Broadcast stopped")
 
     def startBroadcast(self, stream_name, input, muxer='ts', pre_access='', qtype='default'):
-        logger.debig("Starting broadcast......")
+        logger = logging.getLogger("VlcClient_startBroadcast")
+        logger.debug("Starting broadcast......")
         return self._broadcast(True, stream_name, input, muxer, pre_access, qtype)
 
     def stopBroadcast(self, stream_name):
         return self._broadcast(True, stream_name, input, muxer, pre_access, qtype)
 
     def stopBroadcast(self, stream_name):