From 763bd1f0e2ffb724d96aef77b2e81cba44628286 Mon Sep 17 00:00:00 2001 From: Harvey Kandola Date: Thu, 20 Jul 2017 10:48:27 +0100 Subject: [PATCH] check parsed flags --- edition/community.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/edition/community.go b/edition/community.go index 08a52e8b..d6ffd050 100644 --- a/edition/community.go +++ b/edition/community.go @@ -52,8 +52,13 @@ func init() { runtime.Product.License.Trial = false runtime.Product.License.Edition = "Community" + // parse settings from command line and environment runtime.Flags = env.ParseFlags() - flagPrep(&runtime) + flagsOK := flagPrep(&runtime) + + if flagsOK { + // runtime.Log = runtime.Log.SetDB(runtime.Db) + } // temp code repair api.Runtime = runtime