From 9a7f3771025a395e85c2db43263c4d8161d519fd Mon Sep 17 00:00:00 2001 From: gdetrez Date: Fri, 2 Feb 2007 10:09:23 +0100 Subject: [PATCH] + log - mails darcs-hash:20070202090923-f46e9-00449b954167ced565ab3ceac295634e3f5fd62b.gz --- autologout.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/autologout.py b/autologout.py index c15ea99d..621ef644 100755 --- a/autologout.py +++ b/autologout.py @@ -1,6 +1,8 @@ #! /usr/bin/env python import sre, commands +import crans.utils.logs +log = crans.utils.logs.getFileLogger('autologout') # pour chaque ligne du w for w in commands.getoutput("w -h").split('\n') : @@ -30,4 +32,5 @@ for w in commands.getoutput("w -h").split('\n') : # on tue le process commands.getoutput('kill %s' % ps[1] ) - print ps + log.info("%s a ete deconnecte" % ps[0]) + #print ps