File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,9 @@ variables can be used:
2626
2727func main () {
2828 var configPath string
29+ var showConfig bool
2930 flag .StringVar (& configPath , "config" , "" , "The path to a JSON config file." )
31+ flag .BoolVar (& showConfig , "show-config" , false , "Show proxy instance configuration on start." )
3032
3133 flag .Usage = func () {
3234 log .Printf ("DevCycle Local Bucketing Proxy Version %s\n " , Version )
@@ -49,7 +51,9 @@ func main() {
4951 }
5052 // Create router for each instance
5153 for _ , instance := range config .Instances {
52- log .Printf ("Creating bucketing proxy instance: %+v" , instance )
54+ if showConfig {
55+ log .Printf ("Creating bucketing proxy instance: %+v" , instance )
56+ }
5357
5458 // Create client
5559 _ , err = sdkproxy .NewBucketingProxyInstance (instance )
You can’t perform that action at this time.
0 commit comments