Permalink
Browse files

Moved the DEBUG flag out into the code instead of the config file

  • Loading branch information...
1 parent 8f82b3d commit b18e19bf98a4c515e2bc6ab4732325f134b1eab4 @kylegordon committed Sep 28, 2012
Showing with 2 additions and 2 deletions.
  1. +0 −1 mqtt-republisher.cfg.example
  2. +2 −1 mqtt-republisher.py
@@ -1,5 +1,4 @@
[global]
-DEBUG = True
LOGFILE = /var/log/mqtt-republisher.log
MAPFILE = /etc/mqtt-republisher/map.csv
MQTT_HOST = 10.8.0.1
View
@@ -15,12 +15,13 @@
import mosquitto
import ConfigParser
+DEBUG = false
+
# Read the config file
config = ConfigParser.RawConfigParser()
config.read("/etc/mqtt-republisher/mqtt-republisher.cfg")
#Use ConfigParser to pick out the settings
-DEBUG = config.getboolean("global", "debug")
LOGFILE = config.get("global", "logfile")
MAPFILE = config.get("global", "mapfile")
MQTT_HOST = config.get("global", "mqtt_host")

0 comments on commit b18e19b

Please sign in to comment.