Skip to content

Commit b14f59e

Browse files
committed
output version to dump file
1 parent 9fb9142 commit b14f59e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

api.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,9 @@ func (cr *Cluster) initAPIv0() http.Handler {
613613
rw.Header().Set("Content-Disposition", fmt.Sprintf("attachment; filename=%q", name))
614614
}
615615
rw.WriteHeader(http.StatusOK)
616+
if debug == 1 {
617+
fmt.Fprintf(rw, "version: %s (%s)\n", BuildVersion, ClusterVersion)
618+
}
616619
p.WriteTo(rw, debug)
617620
}))
618621
return mux

0 commit comments

Comments
 (0)