feat(regex): print regex.log and sleep after ready
This commit is contained in:
parent
3db9d84b63
commit
25e483898f
10
doEditor.go
10
doEditor.go
|
@ -33,6 +33,16 @@ func doEditor() error {
|
||||||
}
|
}
|
||||||
os.Remove("/tmp/regex.ready")
|
os.Remove("/tmp/regex.ready")
|
||||||
log.Infof("SessionID: %s", string(content))
|
log.Infof("SessionID: %s", string(content))
|
||||||
|
|
||||||
|
logContent, err := ioutil.ReadFile("/tmp/regex.log")
|
||||||
|
if err != nil {
|
||||||
|
log.Errorf("could not read regex.log: %v", err)
|
||||||
|
} else {
|
||||||
|
log.Info("contents of /tmp/regex.log:")
|
||||||
|
os.Stdout.Write(logContent)
|
||||||
|
}
|
||||||
|
|
||||||
|
time.Sleep(5 * time.Second)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue