add option to log debug messages to unix or tcp socket

This commit is contained in:
Bradley Cicenas
2017-05-31 14:45:48 +00:00
parent f3d26e038d
commit bc08b85191
2 changed files with 11 additions and 3 deletions

View File

@@ -78,4 +78,5 @@ func (log *CTopLogger) Exit() {
StopServer()
}
func debugMode() bool { return os.Getenv("CTOP_DEBUG") == "1" }
func debugMode() bool { return os.Getenv("CTOP_DEBUG") == "1" }
func debugModeTCP() bool { return os.Getenv("CTOP_DEBUG_TCP") == "1" }