Mercurial > ~darius > hgwebdir.cgi > beermon
changeset 11:17449d52d5e5
Put the log file in CWD.
author | darius |
---|---|
date | Tue, 23 Oct 2007 01:00:19 +0000 |
parents | 24c7e85c3efd |
children | 87d9d862ecc4 |
files | beermon.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
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)