Upgrade debugging, fix upgrade on ARM (fixes #482)

This commit is contained in:
Jakob Borg
2014-08-07 15:57:20 +02:00
parent 6af9fa4b81
commit 28db264e90
4 changed files with 35 additions and 6 deletions

17
upgrade/debug.go Normal file
View File

@@ -0,0 +1,17 @@
// Copyright (C) 2014 Jakob Borg and Contributors (see the CONTRIBUTORS file).
// All rights reserved. Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file.
package upgrade
import (
"os"
"strings"
"github.com/syncthing/syncthing/logger"
)
var (
debug = strings.Contains(os.Getenv("STTRACE"), "upgrade") || os.Getenv("STTRACE") == "all"
l = logger.DefaultLogger
)