rename NewPluginLogger to NewLogger
Signed-off-by: Steve Kriss <steve@heptio.com>pull/226/head
parent
038fa39451
commit
b66efd9416
|
@ -31,7 +31,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func NewCommand() *cobra.Command {
|
func NewCommand() *cobra.Command {
|
||||||
logger := arkplugin.NewPluginLogger()
|
logger := arkplugin.NewLogger()
|
||||||
|
|
||||||
objectStores := map[string]cloudprovider.ObjectStore{
|
objectStores := map[string]cloudprovider.ObjectStore{
|
||||||
"aws": aws.NewObjectStore(),
|
"aws": aws.NewObjectStore(),
|
||||||
|
|
|
@ -22,9 +22,9 @@ import (
|
||||||
"github.com/heptio/ark/pkg/util/logging"
|
"github.com/heptio/ark/pkg/util/logging"
|
||||||
)
|
)
|
||||||
|
|
||||||
// NewPluginLogger returns a logger that is suitable for use within an
|
// NewLogger returns a logger that is suitable for use within an
|
||||||
// Ark plugin.
|
// Ark plugin.
|
||||||
func NewPluginLogger() logrus.FieldLogger {
|
func NewLogger() logrus.FieldLogger {
|
||||||
logger := logrus.New()
|
logger := logrus.New()
|
||||||
|
|
||||||
// we use the JSON formatter because go-plugin will parse incoming
|
// we use the JSON formatter because go-plugin will parse incoming
|
||||||
|
|
Loading…
Reference in New Issue