Skip to content

Commit 14b8431

Browse files
fix: minor fixes
1 parent e598002 commit 14b8431

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cli/cli.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,16 +139,16 @@ func isChild() bool {
139139

140140
// Run executes the boundary command with the given configuration and arguments
141141
func 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")

0 commit comments

Comments
 (0)