Skip to content

Commit

Permalink
doc strings
Browse files Browse the repository at this point in the history
  • Loading branch information
sherpya committed Jul 12, 2007
1 parent b86936e commit fc463d7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions PyLogAnalyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def query(self, query, info):
#log(E_ERR, str(info.keys()))
#log(E_ERR, '%(ref)s [%(r_date)s --> %(d_date)s] %(delay)s' % info)
#log(E_ERR, '%(ref)s: %(status)s - %(status_desc)s' % info)

quotedict(info)

qs = query % info
Expand Down Expand Up @@ -234,14 +234,16 @@ def mainLoop(self):

## Merge message_id and date and put them into the cache db
def postfix_cleanup(self, info):
""" Collects message_id and inserts the record with the placeholder """
if not info.has_key('message-id'):
self.log(E_ERR, 'postfix/cleanup got no message_id ' + info['msg'])
return False
info['message_id'] = info['message-id']
return self.query(q_postfix_msgid, info)

## qmgr log have from or queue deletions
def postfix_qmgr(self, info):
""" Collects from, size and nrcpt and updates record of postfix/cleanup """
if not info.has_key('from'): return True # removed

try:
Expand All @@ -264,6 +266,7 @@ def postfix_qmgr(self, info):
return self.query(q_postfix_update, info)

def postfix_smtp(self, info):
""" Picks mail_id from the record of postfix/cleanup and fills mail_log_out entry """
if not info.has_key('to'): return False # no need

ref = info['ref']
Expand Down

0 comments on commit fc463d7

Please sign in to comment.