LogWait bool
LogLock bool
LogJS bool
- MyPid int
+ MyPID int
CDebug string
CRedo string
func tracef(level, format string, args ...interface{}) {
var p string
- if MyPid != 0 {
- p = fmt.Sprintf("[%d] ", MyPid)
+ if MyPID != 0 {
+ p = fmt.Sprintf("[%d] ", MyPID)
}
switch level {
case CNone:
LogLock = os.Getenv(EnvLogLock) == "1"
LogJS = os.Getenv(EnvLogJS) == "1"
if Debug || os.Getenv(EnvLogPid) == "1" {
- MyPid = os.Getpid()
+ MyPID = os.Getpid()
}
var traced bool
if flagTraceAll != nil && *flagTraceAll {
if StderrSilent {
continue
}
- if MyPid == 0 {
+ if MyPID == 0 {
tracef(CNone, "%s", line)
} else {
tracef(CNone, "%s %s", pid, line)