Example #1
0
 def error(self, format, *args):
     if _canShortcutLogging(self.logCategory, ERROR):
         return
     doLog(ERROR,
           self.logObjectName(),
           self.logCategory,
           format,
           self.logFunction(*args),
           where=-2)
Example #2
0
 def _seekTimeoutCb(self):
     self.pending_seek_id = None
     if self.position != None and self.format != None:
         position, self.position = self.position, None
         format, self.format = self.format, None
         try:
             self.emit('seek', position, format)
         except:
             log.doLog(log.ERROR, None, "seeker", "Error while seeking to position:%s format:%r",
                       (gst.TIME_ARGS(position), format))
             # if an exception happened while seeking, properly
             # reset ourselves
             return False
     return False
Example #3
0
 def _seekTimeoutCb(self):
     self.pending_seek_id = None
     if self.position != None and self.format != None:
         position, self.position = self.position, None
         format, self.format = self.format, None
         try:
             self.emit('seek', position, format)
         except:
             log.doLog(log.ERROR, None, "seeker",
                       "Error while seeking to position:%s format:%r",
                       (gst.TIME_ARGS(position), format))
             # if an exception happened while seeking, properly
             # reset ourselves
             return False
     return False
Example #4
0
 def error(self, format, *args):
     if _canShortcutLogging(self.logCategory, ERROR):
         return
     doLog(ERROR, self.logObjectName(), self.logCategory,
         format, self.logFunction(*args), where=-2)
Example #5
0
def _errorObject(object, cat, format, *args):
    """
    Log a fatal error message in the given category.
    This will also raise a L{SystemExit}.
    """
    doLog(ERROR, object, cat, format, args)