# HG changeset patch # User darius # Date 1193101219 0 # Node ID 17449d52d5e5e46e55c54f8eb2c50d0526a415d5 # Parent 24c7e85c3efd4336698a8818992fb4d356cfc110 Put the log file in CWD. diff -r 24c7e85c3efd -r 17449d52d5e5 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)