diff options
author | Arne Juul <arnej@yahooinc.com> | 2022-09-21 14:37:12 +0000 |
---|---|---|
committer | Arne Juul <arnej@yahooinc.com> | 2022-09-22 13:51:20 +0000 |
commit | 6e2a680f4def36ec530e0c754f9aa8f906ceb32d (patch) | |
tree | c3f9be49a07a86f140d2142f65ccd6b3b3019b33 /client/go/cmd/deploy/persist.go | |
parent | 044b53e197f3f4f15a0a302f137cbacb4acb9385 (diff) |
common tracing
Diffstat (limited to 'client/go/cmd/deploy/persist.go')
-rw-r--r-- | client/go/cmd/deploy/persist.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/client/go/cmd/deploy/persist.go b/client/go/cmd/deploy/persist.go index 31423050902..682e7b13674 100644 --- a/client/go/cmd/deploy/persist.go +++ b/client/go/cmd/deploy/persist.go @@ -5,9 +5,10 @@ package deploy import ( - // "fmt" "os" "path/filepath" + + "github.com/vespa-engine/vespa/client/go/trace" ) const ( @@ -67,7 +68,7 @@ func writeSessionIdToFile(tenant, newSessionId string) { dir := createTenantDir(tenant) fn := filepath.Join(dir, sessionIdFileName) os.WriteFile(fn, []byte(newSessionId), 0600) - PutTrace("wrote", newSessionId, "to", fn) + trace.Trace("wrote", newSessionId, "to", fn) } } @@ -76,7 +77,7 @@ func getSessionIdFromFile(tenant string) string { fn := filepath.Join(dir, sessionIdFileName) bytes, err := os.ReadFile(fn) if err == nil { - PutTrace("Session-id", string(bytes), "found from file", fn) + trace.Trace("Session-id", string(bytes), "found from file", fn) return string(bytes) } panic("Could not read session id from file, and no session id supplied as argument. Exiting.") |