Mercurial > ~darius > hgwebdir.cgi > beermon.old
diff beermon.py @ 13:c029d2195d19
Put the log file in CWD.
author | darius |
---|---|
date | Tue, 23 Oct 2007 01:00:19 +0000 |
parents | 483375ca5d10 |
children |
line wrap: on
line diff
--- a/beermon.py Sat Sep 29 14:51:20 2007 +0000 +++ b/beermon.py Tue Oct 23 01:00:19 2007 +0000 @@ -4,7 +4,7 @@ # Monitor & control fermenter temperature # v1.0 # -# $Id: beermon.py,v 1.7 2007/09/29 14:39:59 darius Exp $ +# $Id: beermon.py,v 1.8 2007/10/23 01:00:19 darius Exp $ # # Depends on: Python 2.3 (I think) # @@ -47,7 +47,7 @@ log.setLevel(logging.DEBUG) # Log to this file - logfile = logging.handlers.RotatingFileHandler(filename = "/tmp/beermon.log", + logfile = logging.handlers.RotatingFileHandler(filename = "beermon.log", maxBytes = 1000000, backupCount = 3) # And stderr @@ -76,7 +76,7 @@ sys.exit(1) log.debug("=== Initing ===") - log.debug("$Id: beermon.py,v 1.7 2007/09/29 14:39:59 darius Exp $") + log.debug("$Id: beermon.py,v 1.8 2007/10/23 01:00:19 darius Exp $") try: m = MonitorDev.MonitorDev(log, conf)