Skip to content

Commit

Permalink
Merge pull request #503 from aFlyBird0/fix-plugin-log
Browse files Browse the repository at this point in the history
fix: fix go plugin log error
  • Loading branch information
daniel-hutao authored May 18, 2022
2 parents 395fce0 + 3214bd9 commit 856207f
Show file tree
Hide file tree
Showing 19 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion cmd/plugin/argocd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ func (p Plugin) Read(options map[string]interface{}) (map[string]interface{}, er
var DevStreamPlugin Plugin

func main() {
log.Infof("%T: %s is a plugin for DevStream. Use it with DevStream.\n", NAME, DevStreamPlugin)
log.Infof("%T: %s is a plugin for DevStream. Use it with DevStream.\n", DevStreamPlugin, NAME)
}
2 changes: 1 addition & 1 deletion cmd/plugin/argocdapp/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ func (p Plugin) Delete(options map[string]interface{}) (bool, error) {
var DevStreamPlugin Plugin

func main() {
log.Infof("%T: %s is a plugin for DevStream. Use it with DevStream.\n", NAME, DevStreamPlugin)
log.Infof("%T: %s is a plugin for DevStream. Use it with DevStream.\n", DevStreamPlugin, NAME)
}
2 changes: 1 addition & 1 deletion cmd/plugin/devlake/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ func (p Plugin) Delete(options map[string]interface{}) (bool, error) {
var DevStreamPlugin Plugin

func main() {
log.Infof("%T: %s is a plugin for DevStream. Use it with DevStream.\n", NAME, DevStreamPlugin)
log.Infof("%T: %s is a plugin for DevStream. Use it with DevStream.\n", DevStreamPlugin, NAME)
}
2 changes: 1 addition & 1 deletion cmd/plugin/github-repo-scaffolding-golang/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ func (p Plugin) Delete(options map[string]interface{}) (bool, error) {
var DevStreamPlugin Plugin

func main() {
log.Printf("%T: %s is a plugin for DevStream. Use it with DevStream.\n", NAME, DevStreamPlugin)
log.Printf("%T: %s is a plugin for DevStream. Use it with DevStream.\n", DevStreamPlugin, NAME)
}
2 changes: 1 addition & 1 deletion cmd/plugin/githubactions-golang/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ func (p Plugin) Delete(options map[string]interface{}) (bool, error) {
var DevStreamPlugin Plugin

func main() {
log.Infof("%T: %s is a plugin for DevStream. Use it with DevStream.\n", NAME, DevStreamPlugin)
log.Infof("%T: %s is a plugin for DevStream. Use it with DevStream.\n", DevStreamPlugin, NAME)
}
2 changes: 1 addition & 1 deletion cmd/plugin/githubactions-nodejs/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ func (p Plugin) Delete(options map[string]interface{}) (bool, error) {
var DevStreamPlugin Plugin

func main() {
log.Infof("%T: %s is a plugin for DevStream. Use it with DevStream.\n", NAME, DevStreamPlugin)
log.Infof("%T: %s is a plugin for DevStream. Use it with DevStream.\n", DevStreamPlugin, NAME)
}
2 changes: 1 addition & 1 deletion cmd/plugin/githubactions-python/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ func (p Plugin) Delete(options map[string]interface{}) (bool, error) {
var DevStreamPlugin Plugin

func main() {
log.Infof("%T: %s is a plugin for DevStream. Use it with DevStream.\n", NAME, DevStreamPlugin)
log.Infof("%T: %s is a plugin for DevStream. Use it with DevStream.\n", DevStreamPlugin, NAME)
}
2 changes: 1 addition & 1 deletion cmd/plugin/gitlab-repo-scaffolding-golang/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ func (p Plugin) Delete(options map[string]interface{}) (bool, error) {
var DevStreamPlugin Plugin

func main() {
log.Printf("%T: %s is a plugin for DevStream. Use it with DevStream.\n", NAME, DevStreamPlugin)
log.Printf("%T: %s is a plugin for DevStream. Use it with DevStream.\n", DevStreamPlugin, NAME)
}
2 changes: 1 addition & 1 deletion cmd/plugin/gitlabci-generic/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ func (p Plugin) Read(options map[string]interface{}) (map[string]interface{}, er
var DevStreamPlugin Plugin

func main() {
log.Infof("%T: %s is a plugin for DevStream. Use it with DevStream.\n", NAME, DevStreamPlugin)
log.Infof("%T: %s is a plugin for DevStream. Use it with DevStream.\n", DevStreamPlugin, NAME)
}
2 changes: 1 addition & 1 deletion cmd/plugin/gitlabci-golang/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ func (p Plugin) Delete(options map[string]interface{}) (bool, error) {
var DevStreamPlugin Plugin

func main() {
log.Infof("%T: %s is a plugin for DevStream. Use it with DevStream.\n", NAME, DevStreamPlugin)
log.Infof("%T: %s is a plugin for DevStream. Use it with DevStream.\n", DevStreamPlugin, NAME)
}
2 changes: 1 addition & 1 deletion cmd/plugin/hashicorp-vault/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ func (p Plugin) Read(options map[string]interface{}) (map[string]interface{}, er
var DevStreamPlugin Plugin

func main() {
log.Infof("%T: %s is a plugin for DevStream. Use it with DevStream.\n", NAME, DevStreamPlugin)
log.Infof("%T: %s is a plugin for DevStream. Use it with DevStream.\n", DevStreamPlugin, NAME)
}
2 changes: 1 addition & 1 deletion cmd/plugin/helm-generic/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ func (p Plugin) Read(options map[string]interface{}) (map[string]interface{}, er
var DevStreamPlugin Plugin

func main() {
log.Infof("%T: %s is a plugin for DevStream. Use it with DevStream.\n", NAME, DevStreamPlugin)
log.Infof("%T: %s is a plugin for DevStream. Use it with DevStream.\n", DevStreamPlugin, NAME)
}
2 changes: 1 addition & 1 deletion cmd/plugin/jenkins/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ func (p Plugin) Delete(options map[string]interface{}) (bool, error) {
var DevStreamPlugin Plugin

func main() {
log.Infof("%T: %s is a plugin for DevStream. Use it with DevStream.\n", NAME, DevStreamPlugin)
log.Infof("%T: %s is a plugin for DevStream. Use it with DevStream.\n", DevStreamPlugin, NAME)
}
2 changes: 1 addition & 1 deletion cmd/plugin/jira-github-integ/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ func (p Plugin) Delete(options map[string]interface{}) (bool, error) {
var DevStreamPlugin Plugin

func main() {
log.Infof("%T: %s is a plugin for DevStream. Use it with DevStream.\n", NAME, DevStreamPlugin)
log.Infof("%T: %s is a plugin for DevStream. Use it with DevStream.\n", DevStreamPlugin, NAME)
}
2 changes: 1 addition & 1 deletion cmd/plugin/kube-prometheus/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ func (p Plugin) Delete(options map[string]interface{}) (bool, error) {
var DevStreamPlugin Plugin

func main() {
log.Infof("%T: %s is a plugin for DevStream. Use it with DevStream.\n", NAME, DevStreamPlugin)
log.Infof("%T: %s is a plugin for DevStream. Use it with DevStream.\n", DevStreamPlugin, NAME)
}
2 changes: 1 addition & 1 deletion cmd/plugin/openldap/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ func (p Plugin) Read(options map[string]interface{}) (map[string]interface{}, er
var DevStreamPlugin Plugin

func main() {
log.Infof("%T: %s is a plugin for DevStream. Use it with DevStream.\n", NAME, DevStreamPlugin)
log.Infof("%T: %s is a plugin for DevStream. Use it with DevStream.\n", DevStreamPlugin, NAME)
}
2 changes: 1 addition & 1 deletion cmd/plugin/trello-github-integ/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ func (p Plugin) Delete(options map[string]interface{}) (bool, error) {
var DevStreamPlugin Plugin

func main() {
log.Infof("%T: %s is a plugin for DevStream. Use it with DevStream.\n", NAME, DevStreamPlugin)
log.Infof("%T: %s is a plugin for DevStream. Use it with DevStream.\n", DevStreamPlugin, NAME)
}
2 changes: 1 addition & 1 deletion cmd/plugin/trello/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ func (p Plugin) Delete(options map[string]interface{}) (bool, error) {
var DevStreamPlugin Plugin

func main() {
log.Infof("%T: %s is a plugin for DevStream. Use it with DevStream.\n", NAME, DevStreamPlugin)
log.Infof("%T: %s is a plugin for DevStream. Use it with DevStream.\n", DevStreamPlugin, NAME)
}
2 changes: 1 addition & 1 deletion internal/pkg/develop/plugin/template/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (p Plugin) Read(options map[string]interface{}) (map[string]interface{}, er
var DevStreamPlugin Plugin
func main() {
log.Infof("%T: %s is a plugin for DevStream. Use it with DevStream.\n", NAME, DevStreamPlugin)
log.Infof("%T: %s is a plugin for DevStream. Use it with DevStream.\n", DevStreamPlugin, NAME)
}
`

Expand Down

0 comments on commit 856207f

Please sign in to comment.