mirror of
https://github.com/octoleo/syncthing.git
synced 2025-02-04 04:48:28 +00:00
16 lines
372 B
Go
16 lines
372 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
"os"
|
|
"strings"
|
|
)
|
|
|
|
var (
|
|
dlog = log.New(os.Stderr, "main: ", log.Lmicroseconds|log.Lshortfile)
|
|
debugNet = strings.Contains(os.Getenv("STTRACE"), "net")
|
|
debugIdx = strings.Contains(os.Getenv("STTRACE"), "idx")
|
|
debugNeed = strings.Contains(os.Getenv("STTRACE"), "need")
|
|
debugPull = strings.Contains(os.Getenv("STTRACE"), "pull")
|
|
)
|