From 91fed5936e5bb0244126d4ccde7064babc9d9f1a Mon Sep 17 00:00:00 2001 From: simlecode <69969590+simlecode@users.noreply.github.com> Date: Wed, 6 Dec 2023 10:40:35 +0800 Subject: [PATCH] chore: use format to output --- pkg/fork/fork.go | 4 ++-- venus-shared/utils/utils_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/fork/fork.go b/pkg/fork/fork.go index 390c309e43..ccc15b68e2 100644 --- a/pkg/fork/fork.go +++ b/pkg/fork/fork.go @@ -91,11 +91,11 @@ func init() { if mwcs := os.Getenv(EnvMigrationMaxWorkerCount); mwcs != "" { mwc, err := strconv.ParseInt(mwcs, 10, 32) if err != nil { - log.Warnf("invalid value for %s (%s) defaulting to %d: %s", EnvMigrationMaxWorkerCount, mwcs, MigrationMaxWorkerCount, err) + fmt.Printf("invalid value for %s (%s) defaulting to %d: %s\n", EnvMigrationMaxWorkerCount, mwcs, MigrationMaxWorkerCount, err) return } // use value from environment - log.Infof("migration worker cound set from %s (%d)", EnvMigrationMaxWorkerCount, mwc) + fmt.Printf("migration worker count set from %s (%d)\n", EnvMigrationMaxWorkerCount, mwc) MigrationMaxWorkerCount = int(mwc) return } diff --git a/venus-shared/utils/utils_test.go b/venus-shared/utils/utils_test.go index a02338fc02..31860fe4f0 100644 --- a/venus-shared/utils/utils_test.go +++ b/venus-shared/utils/utils_test.go @@ -12,7 +12,7 @@ import ( "github.com/stretchr/testify/assert" ) -func TestNetworkNamtToNetworkType(t *testing.T) { +func TestNetworkNameToNetworkType(t *testing.T) { tf.UnitTest(t) assert.Len(t, NetworkTypeWithNetworkName, 6) assert.Len(t, NetworkNameWithNetworkType, 6)