Skip to content

Commit

Permalink
revert logging changes
Browse files Browse the repository at this point in the history
  • Loading branch information
flarco committed Dec 30, 2024
1 parent c13c2f5 commit 52ded59
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/sling/sling_run.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@ import (
"os"
"path"
"path/filepath"
"runtime"
"runtime/debug"
"strings"
"time"

"gopkg.in/yaml.v2"

"github.com/shirou/gopsutil/v3/mem"
"github.com/slingdata-io/sling-cli/core"
"github.com/slingdata-io/sling-cli/core/env"
"github.com/slingdata-io/sling-cli/core/sling"

Expand Down Expand Up @@ -196,7 +194,9 @@ func processRun(c *g.CliSC) (ok bool, err error) {
defer printUpdateAvailable()

runReplication:
g.DebugLow("Sling version: %s (%s %s)", core.Version, runtime.GOOS, runtime.GOARCH)

g.Info(g.Colorize(g.ColorBlue, "Sling CLI | https://slingdata.io"))

if replicationCfgPath != "" {
// run replication
err = runReplication(replicationCfgPath, cfg, selectStreams...)
Expand Down
3 changes: 3 additions & 0 deletions core/sling/task_run.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ import (
"context"
"net/http"
"os"
"runtime"
"runtime/debug"
"strings"
"time"

_ "net/http/pprof"

"github.com/nqd/flat"
"github.com/slingdata-io/sling-cli/core"

"github.com/flarco/g"
"github.com/slingdata-io/sling-cli/core/dbio"
Expand Down Expand Up @@ -109,6 +111,7 @@ func (t *TaskExecution) Execute() error {
// update into store
StoreSet(t)

g.DebugLow("Sling version: %s (%s %s)", core.Version, runtime.GOOS, runtime.GOARCH)
g.DebugLow("type is %s", t.Type)
g.Debug("using: %s", g.Marshal(g.M("mode", t.Config.Mode, "columns", t.Config.Target.Columns, "transforms", t.Config.Transforms)))
g.Debug("using source options: %s", g.Marshal(t.Config.Source.Options))
Expand Down

0 comments on commit 52ded59

Please sign in to comment.