Revision b459a848 lib/utils/log.py

b/lib/utils/log.py
51 51

  
52 52
    self._reopen = False
53 53

  
54
  def shouldRollover(self, _): # pylint: disable-msg=C0103
54
  def shouldRollover(self, _): # pylint: disable=C0103
55 55
    """Determine whether log file should be reopened.
56 56

  
57 57
    """
58 58
    return self._reopen or not self.stream
59 59

  
60
  def doRollover(self): # pylint: disable-msg=C0103
60
  def doRollover(self): # pylint: disable=C0103
61 61
    """Reopens the log file.
62 62

  
63 63
    """
......
88 88
  This needs to be in a function for unittesting.
89 89

  
90 90
  """
91
  class wrapped(base): # pylint: disable-msg=C0103
91
  class wrapped(base): # pylint: disable=C0103
92 92
    """Log handler that doesn't fallback to stderr.
93 93

  
94 94
    When an error occurs while writing on the logfile, logging.FileHandler
......
108 108
      assert not hasattr(self, "_console")
109 109
      self._console = console
110 110

  
111
    def handleError(self, record): # pylint: disable-msg=C0103
111
    def handleError(self, record): # pylint: disable=C0103
112 112
      """Handle errors which occur during an emit() call.
113 113

  
114 114
      Try to handle errors with FileHandler method, if it fails write to
......
117 117
      """
118 118
      try:
119 119
        base.handleError(record)
120
      except Exception: # pylint: disable-msg=W0703
120
      except Exception: # pylint: disable=W0703
121 121
        if self._console:
122 122
          try:
123
            # Ignore warning about "self.format", pylint: disable-msg=E1101
123
            # Ignore warning about "self.format", pylint: disable=E1101
124 124
            self._console.write("Cannot log message:\n%s\n" %
125 125
                                self.format(record))
126
          except Exception: # pylint: disable-msg=W0703
126
          except Exception: # pylint: disable=W0703
127 127
            # Log handler tried everything it could, now just give up
128 128
            pass
129 129

  

Also available in: Unified diff