Changeset 59:6d020f1e3171 in livinglogic.python.tipimaid
- Timestamp:
- 12/23/08 17:28:41 (10 years ago)
- Author:
- Nikolas Tautenhahn <nik@…>
- Branch:
- default
- Message:
-
more verbose
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
r58
|
r59
|
|
111 | 111 | self.f = open(os.path.join(self.backuppath, datetime.datetime.now().strftime("%Y%m%d_recovery.log")), "a", 1) |
112 | 112 | 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())) |
113 | 114 | for oldline in self.buffer: |
114 | 115 | self.f.write(oldline) |
… |
… |
|
139 | 140 | self.s = None |
140 | 141 | 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())) |
141 | 143 | return # our socket died while we were transmitting buffered items - go back to "normal" behaviour |
142 | 144 | signal.alarm(0) |
… |
… |
|
146 | 148 | self.buffer = self.buffer[i:] # and the content which was transmitted to the server in time |
147 | 149 | 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())) |
149 | 151 | self.buffer = [] # if we arrive here everything was sent successfully |
150 | 152 | |