traceback.go 399 B

12345678910111213141516
  1. // Copyright (C) 2016 The Syncthing Authors.
  2. //
  3. // This Source Code Form is subject to the terms of the Mozilla Public
  4. // License, v. 2.0. If a copy of the MPL was not distributed with this file,
  5. // You can obtain one at https://mozilla.org/MPL/2.0/.
  6. //+build go1.7
  7. package main
  8. import "runtime/debug"
  9. func init() {
  10. // We want all (our) goroutines in panic traces.
  11. debug.SetTraceback("all")
  12. }