diff --git a/cmd/sling/sling_run.go b/cmd/sling/sling_run.go index 1b313160..cd262b44 100755 --- a/cmd/sling/sling_run.go +++ b/cmd/sling/sling_run.go @@ -5,7 +5,6 @@ import ( "os" "path" "path/filepath" - "runtime" "runtime/debug" "strings" "time" @@ -13,7 +12,6 @@ import ( "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" @@ -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...) diff --git a/core/sling/task_run.go b/core/sling/task_run.go index acbeeca1..3ab7fd55 100644 --- a/core/sling/task_run.go +++ b/core/sling/task_run.go @@ -4,6 +4,7 @@ import ( "context" "net/http" "os" + "runtime" "runtime/debug" "strings" "time" @@ -11,6 +12,7 @@ import ( _ "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" @@ -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))