mirror of
https://github.com/zrepl/zrepl.git
synced 2024-11-22 16:34:32 +01:00
796c5ad42d
transport/ssh: update go-netssh to new version => supports CloseWrite and Deadlines => build: require Go 1.11 (netssh requires it)
21 lines
293 B
Go
21 lines
293 B
Go
package rpc
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
)
|
|
|
|
var debugEnabled bool = false
|
|
|
|
func init() {
|
|
if os.Getenv("ZREPL_RPC_DEBUG") != "" {
|
|
debugEnabled = true
|
|
}
|
|
}
|
|
|
|
func debug(format string, args ...interface{}) {
|
|
if debugEnabled {
|
|
fmt.Fprintf(os.Stderr, "rpc: %s\n", fmt.Sprintf(format, args...))
|
|
}
|
|
}
|