Skip to content

Commit 6851f7c

Browse files
committed
add version information to log
- Added Sling version, GOOS, and GOARCH to the debug log for better troubleshooting and identification.
1 parent 52adaad commit 6851f7c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

cmd/sling/sling_run.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@ import (
66
"os"
77
"path"
88
"path/filepath"
9+
"runtime"
910
"runtime/debug"
1011
"strings"
1112
"time"
1213

1314
"gopkg.in/yaml.v2"
1415

1516
"github.com/shirou/gopsutil/v3/mem"
17+
"github.com/slingdata-io/sling-cli/core"
1618
"github.com/slingdata-io/sling-cli/core/dbio/connection"
1719
"github.com/slingdata-io/sling-cli/core/env"
1820
"github.com/slingdata-io/sling-cli/core/sling"
@@ -568,6 +570,8 @@ func replicationRun(cfgPath string, cfgOverwrite *sling.Config, selectStreams ..
568570
}
569571

570572
func runPipeline(pipelineCfgPath string) (err error) {
573+
g.DebugLow("Sling version: %s (%s %s)", core.Version, runtime.GOOS, runtime.GOARCH)
574+
571575
pipeline, err := sling.LoadPipelineConfigFromFile(pipelineCfgPath)
572576
if err != nil {
573577
return g.Error(err, "could not load pipeline: %s", pipelineCfgPath)

0 commit comments

Comments
 (0)