diff --git a/go/pkg/console/global.go b/go/pkg/console/global.go index a8812781..3621cafd 100644 --- a/go/pkg/console/global.go +++ b/go/pkg/console/global.go @@ -1,14 +1,11 @@ package console import ( - "fmt" "os" "github.com/mattn/go-isatty" ) -const truncateLength = 80 - // ConsoleInstance is the global instance of console, so we don't have to pass it around everywhere var ConsoleInstance *Console = &Console{ Color: true, @@ -69,11 +66,3 @@ func DebugOutput(line string) { func IsTTY() bool { return isatty.IsTerminal(os.Stdout.Fd()) } - -func Truncate(msg string, v ...interface{}) string { - s := fmt.Sprintf(msg, v...) - if len(s) > truncateLength && truncateLength > 3 { - return s[:truncateLength-3] + "..." - } - return s -} diff --git a/go/pkg/project/project.go b/go/pkg/project/project.go index f0b2639e..472c1f65 100644 --- a/go/pkg/project/project.go +++ b/go/pkg/project/project.go @@ -251,7 +251,7 @@ func (p *Project) CreateExperiment(args CreateExperimentArgs, async bool, workCh return err } if !quiet { - console.Info(console.Truncate("Created experiment %s, copied the files from %s to %s/%s", exp.ShortID(), exp.Path, p.repository.RootURL(), exp.StorageTarPath())) + console.Info("Created experiment %s, copied '%s' to '%s'...", exp.ShortID(), exp.Path, p.repository.RootURL()) } return nil } @@ -298,7 +298,7 @@ func (p *Project) CreateCheckpoint(args CreateCheckpointArgs, async bool, workCh return err } if !quiet { - console.Info(console.Truncate("Created checkpoint %s, copied the files from %s to %s/%s", chk.ShortID(), chk.Path, p.repository.RootURL(), chk.StorageTarPath())) + console.Info("Created checkpoint %s, copied '%s' to '%s'...", chk.ShortID(), chk.Path, p.repository.RootURL()) } return nil }