VOL-26433 initialize logging system
Change-Id: If06adf4d2eca9d4c8dd68b51ebee6fc45c921e58
diff --git a/VERSION b/VERSION
index 9084fa2..524cb55 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-1.1.0
+1.1.1
diff --git a/cmd/ofagent/main.go b/cmd/ofagent/main.go
index b7aabd1..b0d107b 100644
--- a/cmd/ofagent/main.go
+++ b/cmd/ofagent/main.go
@@ -42,6 +42,13 @@
fmt.Println(version.VersionInfo.String(" "))
}
+func init() {
+ _, err := log.AddPackage(log.JSON, log.DebugLevel, nil)
+ if err != nil {
+ log.Errorw("unable-to-register-package-to-the-log-map", log.Fields{"error": err})
+ }
+}
+
func main() {
config, _ := parseCommandLineArguments()