use standard log

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-06-16 10:54:45 -07:00
parent 30d3fe09b5
commit 2e37ee24f7
1 changed files with 5 additions and 4 deletions

9
run.go
View File

@ -10,7 +10,8 @@ import "os"
import "bufio" import "bufio"
import "github.com/svent/go-nbreader" import "github.com/svent/go-nbreader"
import "git.wit.com/wit/log" import "log"
// import "git.wit.com/wit/log"
var msecDelay int = 20 // check every 20 milliseconds var msecDelay int = 20 // check every 20 milliseconds
@ -118,14 +119,14 @@ func (cmd *Shell) Exec(cmdline string) {
} }
func (cmd *Shell) Capture(f *File) { func (cmd *Shell) Capture(f *File) {
log.Debugln("nbrREADER() START") // log.Debugln("nbrREADER() START")
if (cmd.Buffer == nil) { if (cmd.Buffer == nil) {
cmd.Buffer = new(bytes.Buffer) cmd.Buffer = new(bytes.Buffer)
} }
if (cmd.Buffer == nil) { if (cmd.Buffer == nil) {
log.Debugln("f.Buffer == nil") // log.Debugln("f.Buffer == nil")
log.Debugln("SHOULD DIE HERE") // log.Debugln("SHOULD DIE HERE")
f.Dead = false f.Dead = false
cmd.Error = fmt.Errorf("could not make buffer") cmd.Error = fmt.Errorf("could not make buffer")
cmd.Done = true cmd.Done = true