Removed print messages

This commit is contained in:
Gerard Wagener 2010-01-19 14:12:50 +01:00
parent 8a57773fcc
commit 52d235b957

View file

@ -125,8 +125,6 @@ class ProcessTrees:
try: try:
pid = int(msg['pid'][0]) pid = int(msg['pid'][0])
ppid = int(msg['ppid'][0]) ppid = int(msg['ppid'][0])
print "Annotate process ",pid
print msg
if self.aplist.has_key(pid) == False: if self.aplist.has_key(pid) == False:
#Got a new process, so create a new dictionary for meta data #Got a new process, so create a new dictionary for meta data
self.aplist[pid] = dict() self.aplist[pid] = dict()
@ -140,17 +138,15 @@ class ProcessTrees:
if ev.startswith('SSH_CLIENT='): if ev.startswith('SSH_CLIENT='):
ev = ev.replace('SSH_CLIENT=','') ev = ev.replace('SSH_CLIENT=','')
self.aplist[pid]['ssh_client'] = ev self.aplist[pid]['ssh_client'] = ev
print"GROAAAAAAAAAAAAAAAAAAAAARRRRRRRRRRRRRRR: ",pid
# Is there a timestamp? # Is there a timestamp?
if msg.has_key('timestamp'): if msg.has_key('timestamp'):
self.aplist[pid]['timestamp'] = msg['timestamp'] self.aplist[pid]['timestamp'] = msg['timestamp']
print "annotated list"
print self.aplist
except ValueError,e: except ValueError,e:
pass pass
except IndexError,e: except IndexError,e:
pass pass
def addUser(self,pid): def addUser(self,pid):
self.userList[pid] = 1 #Shortcut to init self.userList[pid] = 1 #Shortcut to init