summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Langesten <daniel.langest@gmail.com>2015-05-18 10:20:20 +0200
committerDaniel Langesten <daniel.langest@gmail.com>2015-05-18 10:20:20 +0200
commit290296558bdaa3fdfc7a810409885d2e162f31d5 (patch)
tree7b27c1c75c10d7975a23f62bf5121bf0c88b450b
parent36cab6e2dac9935931a6b15f9c24c0c0151a9afe (diff)
small bugfix
-rw-r--r--config.json2
-rw-r--r--flow-cleaner.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/config.json b/config.json
index c2f8b00..aeeab01 100644
--- a/config.json
+++ b/config.json
@@ -8,7 +8,7 @@
"comment Epsilon": "Epsilon is the epsilon value for differential privacy. epsilon < 1 high privacy, 10 < epsilon low privacy. If epsilon is set to 0, differential privacy will not be used.",
"epsilon": 0,
- "comment Verbose": "Enables extra output. Primarily used for debugging"
+ "comment Verbose": "Enables extra output. Primarily used for debugging",
"verbose": true,
"comment dataSource": "dataSource is from where the program should read and process data. Currently only mysql and stdin is supported.",
diff --git a/flow-cleaner.go b/flow-cleaner.go
index 1046f5c..8821abe 100644
--- a/flow-cleaner.go
+++ b/flow-cleaner.go
@@ -20,11 +20,11 @@ func init() {
func main() {
flogger.Println("Now running Flow-cleaner")
cfg, err := readConfig()
- VERBOSE = cfg.Verbose
if err != nil {
flogger.Println("Could not read config")
return
}
+ VERBOSE = cfg.Verbose
switch cfg.DataSource {
case "stdin":