Skip to content
This repository was archived by the owner on Jun 26, 2023. It is now read-only.

Commit 64c0851

Browse files
committed
change logging locations
1 parent 494e923 commit 64c0851

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

compose/compose.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func NewComposeDeployer(binaryPath, configPath string) (libstack.Deployer, error
1818
}
1919

2020
if err == errors.ErrBinaryNotFound {
21-
log.Printf("[INFO] [main,compose] [message: binary is missing, falling-back to compose plugin] [error: %s]", err)
21+
log.Printf("[INFO] [compose] [message: binary is missing, falling-back to compose plugin] [error: %s]", err)
2222
return composeplugin.NewPluginWrapper(binaryPath, configPath)
2323
}
2424

compose/internal/composebinary/composebinary.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ func (wrapper *ComposeWrapper) Deploy(ctx context.Context, workingDir, host, pro
3939
return err
4040
}
4141

42-
log.Printf("[INFO] [libstack,composebinary] [message: Stack deployment successful]")
43-
log.Printf("[DEBUG] [libstack,composebinary] [output: %s]", output)
42+
log.Printf("[INFO] [compose,internal,composebinary] [message: Stack deployment successful]")
43+
log.Printf("[DEBUG] [compose,internal,composebinary] [output: %s]", output)
4444
}
4545

4646
return err
@@ -54,8 +54,8 @@ func (wrapper *ComposeWrapper) Remove(ctx context.Context, workingDir, host, pro
5454
return err
5555
}
5656

57-
log.Printf("[INFO] [libstack,composebinary] [message: Stack removal successful]")
58-
log.Printf("[DEBUG] [libstack,composebinary] [output: %s]", output)
57+
log.Printf("[INFO] [compose,internal,composebinary] [message: Stack removal successful]")
58+
log.Printf("[DEBUG] [compose,internal,composebinary] [output: %s]", output)
5959
}
6060

6161
return err
@@ -70,8 +70,8 @@ func (wrapper *ComposeWrapper) Pull(ctx context.Context, workingDir, host, proje
7070
return err
7171
}
7272

73-
log.Printf("[INFO] [libstack,composebinary] [message: Stack pull successful]")
74-
log.Printf("[DEBUG] [libstack,composebinary] [output: %s]", output)
73+
log.Printf("[INFO] [compose,internal,composebinary] [message: Stack pull successful]")
74+
log.Printf("[DEBUG] [compose,internal,composebinary] [output: %s]", output)
7575
}
7676

7777
return err

compose/internal/composeplugin/composeplugin.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ func (wrapper *PluginWrapper) Deploy(ctx context.Context, workingDir, host, proj
6969
return err
7070
}
7171

72-
log.Printf("[INFO] [libstack,composeplugin] [message: Stack deployment successful]")
73-
log.Printf("[DEBUG] [libstack,composeplugin] [output: %s]", output)
72+
log.Printf("[INFO] [compose,internal,composeplugin] [message: Stack deployment successful]")
73+
log.Printf("[DEBUG] [compose,internal,composeplugin] [output: %s]", output)
7474
}
7575

7676
return err
@@ -84,8 +84,8 @@ func (wrapper *PluginWrapper) Remove(ctx context.Context, workingDir, host, proj
8484
return err
8585
}
8686

87-
log.Printf("[INFO] [libstack,composeplugin] [message: Stack removal successful]")
88-
log.Printf("[DEBUG] [libstack,composeplugin] [output: %s]", output)
87+
log.Printf("[INFO] [compose,internal,composeplugin] [message: Stack removal successful]")
88+
log.Printf("[DEBUG] [compose,internal,composeplugin] [output: %s]", output)
8989
}
9090

9191
return err
@@ -99,8 +99,8 @@ func (wrapper *PluginWrapper) Pull(ctx context.Context, workingDir, host, projec
9999
return err
100100
}
101101

102-
log.Printf("[INFO] [libstack,composeplugin] [message: Stack pull successful]")
103-
log.Printf("[DEBUG] [libstack,composeplugin] [output: %s]", output)
102+
log.Printf("[INFO] [compose,internal,composeplugin] [message: Stack pull successful]")
103+
log.Printf("[DEBUG] [compose,internal,composeplugin] [output: %s]", output)
104104
}
105105

106106
return err

0 commit comments

Comments
 (0)