Skip to content

Commit

Permalink
refactor: log level
Browse files Browse the repository at this point in the history
Signed-off-by: Lin Yang <[email protected]>
  • Loading branch information
reaver-flomesh committed Jan 4, 2025
1 parent cc0cd17 commit 2fdb769
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,13 +253,10 @@ jobs:
bucket: [6]
include:
- k8s_version: v1.19.16-k3s1
focus: "Test traffic from client to backend service routing by FSM Gateway"
bucket: ".*"
- k8s_version: v1.21.16-k3s1
focus: "Test traffic from client to backend service routing by FSM Gateway"
bucket: ".*"
- k8s_version: v1.23.17-k3s1
focus: "Test traffic from client to backend service routing by FSM Gateway"
bucket: ".*"
env:
CTR_TAG: ${{ github.sha }}
Expand Down
6 changes: 5 additions & 1 deletion tests/framework/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import (
"strings"
"time"

"github.com/sirupsen/logrus"

"github.com/k3d-io/k3d/v5/pkg/config"

"github.com/k3d-io/k3d/v5/pkg/runtimes"
Expand Down Expand Up @@ -70,6 +72,7 @@ import (
k3dCluster "github.com/k3d-io/k3d/v5/pkg/client"
k3dTypes "github.com/k3d-io/k3d/v5/pkg/config/types"
k3dCfg "github.com/k3d-io/k3d/v5/pkg/config/v1alpha5"
k3dLogger "github.com/k3d-io/k3d/v5/pkg/logger"
k3d "github.com/k3d-io/k3d/v5/pkg/types"
k3dutil "github.com/k3d-io/k3d/v5/pkg/util"
)
Expand Down Expand Up @@ -257,6 +260,7 @@ func (td *FsmTestData) InitTestData(t GinkgoTInterface) error {
clusterConfig := td.k3dClusterConfig()
td.ClusterConfig = clusterConfig

k3dLogger.Logger.SetLevel(logrus.DebugLevel)
if err := k3dCluster.ClusterRun(context.TODO(), runtimes.SelectedRuntime, clusterConfig); err != nil {
// rollback if creation failed
td.T.Error(err)
Expand Down Expand Up @@ -519,7 +523,7 @@ mirrors:
if err != nil {
td.T.Fatal(err)
}
td.T.Log("===== Merged Cluster Config =====\n%+v\n===== ===== =====\n", clusterConfig)
td.T.Logf("===== Merged Cluster Config =====\n%+v\n===== ===== =====\n", clusterConfig)

clusterConfig, err = config.ProcessClusterConfig(*clusterConfig)
if err != nil {
Expand Down

0 comments on commit 2fdb769

Please sign in to comment.