mirror of
https://github.com/restic/restic.git
synced 2026-10-10 04:07:11 +00:00
debug: Add version number to debug log
This commit is contained in:
1 parent
58de8bf392
commit
907c201693
1 file changed
+3
@@ -9,6 +9,7 @@ import (
|
||||
"restic"
|
||||
"restic/debug"
|
||||
"restic/options"
|
||||
"runtime"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
@@ -57,6 +58,8 @@ func init() {
|
||||
|
||||
func main() {
|
||||
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()
|
||||
|
||||
switch {
|
||||
|
||||
Reference in new issue
Block a user