# HG changeset patch # User darius # Date 1193101219 0 # Node ID c029d2195d19a0e062ac04e50b01671a6f04812f # Parent 9d5b291cfd016c89a30915b92a6597d6cae2ba00 Put the log file in CWD. diff -r 9d5b291cfd01 -r c029d2195d19 beermon.py --- 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)