debug: Add version number to debug log
This commit is contained in:
parent
58de8bf392
commit
907c201693
1 changed files with 3 additions and 0 deletions
|
@ -9,6 +9,7 @@ import (
|
||||||
"restic"
|
"restic"
|
||||||
"restic/debug"
|
"restic/debug"
|
||||||
"restic/options"
|
"restic/options"
|
||||||
|
"runtime"
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
|
@ -57,6 +58,8 @@ func init() {
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
debug.Log("main %#v", os.Args)
|
debug.Log("main %#v", os.Args)
|
||||||
|
debug.Log("restic %s, compiled with %v on %v/%v",
|
||||||
|
version, runtime.Version(), runtime.GOOS, runtime.GOARCH)
|
||||||
err := cmdRoot.Execute()
|
err := cmdRoot.Execute()
|
||||||
|
|
||||||
switch {
|
switch {
|
||||||
|
|
Loading…
Reference in a new issue