Changeset 561 for trunk/email2trac.py.in
- Timestamp:
- 08/17/11 09:21:46 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/email2trac.py.in
r559 r561 409 409 410 410 if self.parameters.dry_run: 411 self.logger. debug('DRY-RUN: not saving body to %s' %(body_file))411 self.logger.info('DRY-RUN: not saving body to %s' %(body_file)) 412 412 return 413 413 … … 460 460 461 461 if self.parameters.dry_run: 462 print 'DRY_RUN: NOT saving attachments'462 self.logger.info('DRY_RUN: NOT saving attachments') 463 463 continue 464 464 … … 614 614 615 615 if self.parameters.dry_run: 616 print 'DRY_RUN: html2text conversion command: %s\n' %(cmd)616 self.logger.info('DRY_RUN: html2text conversion command: %s\n' %(cmd)) 617 617 618 618 else: … … 975 975 976 976 if self.parameters.dry_run: 977 print 'DRY_RUN: tkt.save_changes(self.author, body_text, ticket_change_number) ', self.author, cnum 977 s = 'DRY_RUN: tkt.save_changes(self.author, body_text, ticket_change_number) %s %s' %(self.author, cnum) 978 self.logger.info(s) 978 979 979 980 else: … … 1186 1187 1187 1188 if self.parameters.dry_run: 1188 print 'DRY_RUN: tkt.insert()'1189 self.logger.info('DRY_RUN: tkt.insert()') 1189 1190 else: 1190 1191 self.id = tkt.insert() … … 1224 1225 if changed: 1225 1226 if self.parameters.dry_run: 1226 print 'DRY_RUN: tkt.save_changes(%s, comment) real reporter = %s' %( tkt['reporter'], self.author) 1227 s = 'DRY_RUN: tkt.save_changes(%s, comment) real reporter = %s' %( tkt['reporter'], self.author) 1228 self.logger.info(s) 1229 1227 1230 else: 1228 1231 tkt.save_changes(tkt['reporter'], comment) … … 2218 2221 2219 2222 if self.parameters.dry_run : 2220 print 'DRY_RUN: self.notify(tkt, True) reporter = %s' %tkt['reporter']2223 self.logger.info('DRY_RUN: self.notify(tkt, True) reporter = %s' %tkt['reporter']) 2221 2224 return 2222 2225 try: … … 2267 2270 """ 2268 2271 (torcpts, ccrcpts) = self.get_recipients(resid) 2272 2273 #print torcpts, ccrcpts, sender_email 2269 2274 2270 2275 if not tktparser.email_header_acl('notify_reporter_black_list', sender_email, False):
Note: See TracChangeset
for help on using the changeset viewer.