Changeset 59:6d020f1e3171 in livinglogic.python.tipimaid

Show
Ignore:
Timestamp:
12/23/08 17:28:41 (10 years ago)
Author:
Nikolas Tautenhahn <nik@…>
Branch:
default
Message:

more verbose

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • liaalh_sender.py

    r58 r59  
    111111                self.f = open(os.path.join(self.backuppath, datetime.datetime.now().strftime("%Y%m%d_recovery.log")), "a", 1) 
    112112            if self.buffer: # if we have buffered entries these must be handled before "line" 
     113                sys.stderr.write("%s (%s): Dumping buffered data to local recovery file\n" % (self.progname, datetime.datetime.now().isoformat())) 
    113114                for oldline in self.buffer: 
    114115                    self.f.write(oldline) 
     
    139140                                    self.s = None 
    140141                                    self.buffer = self.buffer[i:] # the first i items were transmitted successfully 
     142                                    sys.stderr.write("%s (%s): Socket connection died again, while sending buffered data\n" % (self.progname, datetime.datetime.now().isoformat())) 
    141143                                    return # our socket died while we were transmitting buffered items - go back to "normal" behaviour 
    142144                                signal.alarm(0) 
     
    146148                            self.buffer = self.buffer[i:] # and the content which was transmitted to the server in time 
    147149                            return 
    148                     sys.stderr.write("%s (%s): Socket connection established again, all data could be sent to the server\n" % (self.progname, self.last_check_connection.isoformat())) 
     150                    sys.stderr.write("%s (%s): Socket connection established again, all data could be sent to the server\n" % (self.progname, datetime.datetime.now().isoformat())) 
    149151                    self.buffer = [] # if we arrive here everything was sent successfully 
    150152