Set a log prefix for each plugin and remove go-dynect global log prefix (#6336)
This commit is contained in:
parent
991dc3f86f
commit
e942a74def
|
@ -1,6 +1,7 @@
|
||||||
package command
|
package command
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
"log"
|
"log"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
@ -41,6 +42,8 @@ func (c *InternalPluginCommand) Run(args []string) int {
|
||||||
pluginType := args[0]
|
pluginType := args[0]
|
||||||
pluginName := args[1]
|
pluginName := args[1]
|
||||||
|
|
||||||
|
log.SetPrefix(fmt.Sprintf("%s-%s (internal) ", pluginName, pluginType))
|
||||||
|
|
||||||
switch pluginType {
|
switch pluginType {
|
||||||
case "provider":
|
case "provider":
|
||||||
pluginFunc, found := InternalProviders[pluginName]
|
pluginFunc, found := InternalProviders[pluginName]
|
||||||
|
|
Loading…
Reference in New Issue