瀏覽代碼

Incidentals.

Chris McDonough 19 年之前
父節點
當前提交
8b03d964d9
共有 2 個文件被更改,包括 2 次插入14 次删除
  1. 0 3
      TODO.txt
  2. 2 11
      src/supervisor/xmlrpc.py

+ 0 - 3
TODO.txt

@@ -9,9 +9,6 @@
   
    - Unit tests for meld classes and ui server.
 
-- Rewrite RPC stuff: use ProcessStates rather than direct attribute
-  access, rename methods.
-
 - Unit tests for log rotation.
 
 - Better remote explanation when kill_undead needs to happen from

+ 2 - 11
src/supervisor/xmlrpc.py

@@ -544,7 +544,7 @@ class SupervisorNamespaceRPCInterface:
         return output
 
     def readProcessLog(self, name, offset, length):
-        """ Read length bytes from processName's log starting at offset
+        """ Read length bytes from name's log starting at offset
 
         @param string name The name of the process
         @param int offset         offset to start reading from.
@@ -569,7 +569,7 @@ class SupervisorNamespaceRPCInterface:
             raise RPCError(getattr(Faults, why))
 
     def clearProcessLog(self, name):
-        """ Clear the log for processName and reopen it
+        """ Clear the log for name and reopen it
 
         @param string name   The name of the process
         @return boolean result      Always True unless error
@@ -626,15 +626,6 @@ class SupervisorNamespaceRPCInterface:
         clearall.rpcinterface = self
         return clearall # deferred
 
-    def _rotateMainLog(self):
-        """ Rotate the main supervisord log (for debugging/testing) """
-        self._update('_rotateMainLog')
-        
-        for handler in self.supervisord.options.logger.handlers:
-            if hasattr(handler, 'doRollover'):
-                handler.doRollover()
-        return True
-        
 class SystemNamespaceRPCInterface:
     def __init__(self, namespaces):
         self.namespaces = {}