mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 23:00:58 +00:00
16 lines
232 B
Go
16 lines
232 B
Go
|
package xdr
|
||
|
|
||
|
import (
|
||
|
"os"
|
||
|
"strings"
|
||
|
|
||
|
"github.com/calmh/syncthing/logger"
|
||
|
)
|
||
|
|
||
|
var (
|
||
|
debug = strings.Contains(os.Getenv("STTRACE"), "xdr") || os.Getenv("STTRACE") == "all"
|
||
|
dl = logger.DefaultLogger
|
||
|
)
|
||
|
|
||
|
const maxDebugBytes = 32
|