Skip to content

Commit b7dcd56

Browse files
authored
fix: Default Plugin logger assumes plugin is a source (#1531)
Rather than using `-src` for all plugins this PR uses the `plugin.Kind()` to set `-source` or `-destination`
1 parent 4cc6ade commit b7dcd56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/plugin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ func (p *Plugin) Targets() []BuildTarget {
179179
}
180180

181181
func (p *Plugin) SetLogger(logger zerolog.Logger) {
182-
p.logger = logger.With().Str("module", p.name+"-src").Logger()
182+
p.logger = logger.With().Str("module", p.name+"-"+string(p.Kind())).Logger()
183183
}
184184

185185
func (p *Plugin) Tables(ctx context.Context, options TableOptions) (schema.Tables, error) {

0 commit comments

Comments
 (0)