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
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"strings"
|
||||
|
||||
|
@ -41,6 +42,8 @@ func (c *InternalPluginCommand) Run(args []string) int {
|
|||
pluginType := args[0]
|
||||
pluginName := args[1]
|
||||
|
||||
log.SetPrefix(fmt.Sprintf("%s-%s (internal) ", pluginName, pluginType))
|
||||
|
||||
switch pluginType {
|
||||
case "provider":
|
||||
pluginFunc, found := InternalProviders[pluginName]
|
||||
|
|
Loading…
Reference in New Issue