@@ -106,21 +106,26 @@ type BootstrapConfig struct {
106
106
FaaSConfig ftypes.FaaSConfig
107
107
}
108
108
109
- // Fprint pretty-prints the config with the std logger. One line per config value.
110
- func (c BootstrapConfig ) Fprint () {
109
+ // Fprint pretty-prints the config with the stdlib logger. One line per config value.
110
+ // When the verbose flag is set to false, it prints the same output as prior to
111
+ // the 0.12.0 release.
112
+ func (c BootstrapConfig ) Fprint (verbose bool ) {
111
113
log .Printf ("HTTP Read Timeout: %s\n " , c .FaaSConfig .GetReadTimeout ())
112
114
log .Printf ("HTTP Write Timeout: %s\n " , c .FaaSConfig .WriteTimeout )
113
- log .Printf ("MaxIdleConns: %d\n " , c .FaaSConfig .MaxIdleConns )
114
- log .Printf ("MaxIdleConnsPerHost: %d\n " , c .FaaSConfig .MaxIdleConnsPerHost )
115
- log .Printf ("HTTPProbe: %v\n " , c .HTTPProbe )
116
- log .Printf ("DefaultFunctionNamespace: %s\n " , c .DefaultFunctionNamespace )
117
- log .Printf ("ProfilesNamespace: %s\n " , c .ProfilesNamespace )
118
115
log .Printf ("ImagePullPolicy: %s\n " , c .ImagePullPolicy )
119
- log .Printf ("SetNonRootUser: %v\n " , c .SetNonRootUser )
120
- log .Printf ("ReadinessProbeInitialDelaySeconds: %d\n " , c .ReadinessProbeInitialDelaySeconds )
121
- log .Printf ("ReadinessProbeTimeoutSeconds: %d\n " , c .ReadinessProbeTimeoutSeconds )
122
- log .Printf ("ReadinessProbePeriodSeconds: %d\n " , c .ReadinessProbePeriodSeconds )
123
- log .Printf ("LivenessProbeInitialDelaySeconds: %d\n " , c .LivenessProbeInitialDelaySeconds )
124
- log .Printf ("LivenessProbeTimeoutSeconds: %d\n " , c .LivenessProbeTimeoutSeconds )
125
- log .Printf ("LivenessProbePeriodSeconds: %d\n " , c .LivenessProbePeriodSeconds )
116
+ log .Printf ("DefaultFunctionNamespace: %s\n " , c .DefaultFunctionNamespace )
117
+
118
+ if verbose {
119
+ log .Printf ("MaxIdleConns: %d\n " , c .FaaSConfig .MaxIdleConns )
120
+ log .Printf ("MaxIdleConnsPerHost: %d\n " , c .FaaSConfig .MaxIdleConnsPerHost )
121
+ log .Printf ("HTTPProbe: %v\n " , c .HTTPProbe )
122
+ log .Printf ("ProfilesNamespace: %s\n " , c .ProfilesNamespace )
123
+ log .Printf ("SetNonRootUser: %v\n " , c .SetNonRootUser )
124
+ log .Printf ("ReadinessProbeInitialDelaySeconds: %d\n " , c .ReadinessProbeInitialDelaySeconds )
125
+ log .Printf ("ReadinessProbeTimeoutSeconds: %d\n " , c .ReadinessProbeTimeoutSeconds )
126
+ log .Printf ("ReadinessProbePeriodSeconds: %d\n " , c .ReadinessProbePeriodSeconds )
127
+ log .Printf ("LivenessProbeInitialDelaySeconds: %d\n " , c .LivenessProbeInitialDelaySeconds )
128
+ log .Printf ("LivenessProbeTimeoutSeconds: %d\n " , c .LivenessProbeTimeoutSeconds )
129
+ log .Printf ("LivenessProbePeriodSeconds: %d\n " , c .LivenessProbePeriodSeconds )
130
+ }
126
131
}
0 commit comments