Attachments you submit will be routed for moderation. If you have an account, please log in first.

Ticket #1862: 0001-Remove-unneeded-journal-debug-logs-1862.patch

File 0001-Remove-unneeded-journal-debug-logs-1862.patch, 1.1 KB (added by erikos, 3 years ago)

Patch against master

  • src/jarabe/journal/model.py

    From 7399cdc12c861a6a73221e16d77592ad5c3ca5db Mon Sep 17 00:00:00 2001
    From: Simon Schampijer <simon@schampijer.de>
    Date: Mon, 23 Aug 2010 13:43:30 +0200
    Subject: [PATCH] Remove unneeded journal debug logs #1862
    
    ---
     src/jarabe/journal/model.py |    4 ----
     1 files changed, 0 insertions(+), 4 deletions(-)
    
    diff --git a/src/jarabe/journal/model.py b/src/jarabe/journal/model.py
    index ffc62e0..af1b69c 100644
    a b  
    108108        self._position = position 
    109109 
    110110    def read(self): 
    111         logging.debug('ResultSet.read position: %r', self._position) 
    112  
    113111        if self._position == -1: 
    114112            self.seek(0) 
    115113 
     
    184182            objects_excess = len(self._cache) - cache_limit 
    185183            if objects_excess > 0: 
    186184                del self._cache[-objects_excess:] 
    187         else: 
    188             logging.debug('cache hit and no need to grow the cache') 
    189185 
    190186        return self._cache[self._position - self._offset] 
    191187