Added on wire event format

This commit is contained in:
Torkel Ödegaard
2015-02-04 16:57:20 +01:00
parent dace35d31d
commit 525179eb85
5 changed files with 92 additions and 42 deletions
-11
View File
@@ -219,17 +219,6 @@ func NewConfigContext() {
LogRootPath = Cfg.Section("log").Key("root_path").MustString(path.Join(WorkDir, "/data/log"))
// Notifications
NotificationsEnabled = Cfg.Section("notifications").Key("enabled").MustBool(false)
RabbitmqUrl = Cfg.Section("notifications").Key("rabbitmq_url").MustString("amqp://localhost/")
// validate rabbitmqUrl.
_, err = url.Parse(RabbitmqUrl)
if err != nil {
log.Fatal(4, "Invalid rabbitmq_url(%s): %s", RabbitmqUrl, err)
}
NotificationsExchange = Cfg.Section("notifications").Key("notifications_exchange").MustString("notifications")
readSessionConfig()
}