mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-23 11:28:59 +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
|