File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -139,16 +139,16 @@ func isChild() bool {
139139
140140// Run executes the boundary command with the given configuration and arguments
141141func Run (ctx context.Context , config Config , args []string ) error {
142- configInJSON , err := json . Marshal (config )
142+ logger , err := setupLogging (config )
143143 if err != nil {
144- panic ( err )
144+ return fmt . Errorf ( "could not set up logging: %v" , err )
145145 }
146- fmt .Printf ("%s\n " , configInJSON )
147146
148- logger , err := setupLogging (config )
147+ configInJSON , err := json . Marshal (config )
149148 if err != nil {
150- return fmt . Errorf ( "could not set up logging: %v" , err )
149+ return err
151150 }
151+ logger .Debug ("config" , "json_config" , configInJSON )
152152
153153 if isChild () {
154154 logger .Info ("boundary CHILD process is started" )
You can’t perform that action at this time.
0 commit comments