summaryrefslogtreecommitdiff
path: root/doEditor.go
diff options
context:
space:
mode:
Diffstat (limited to 'doEditor.go')
-rw-r--r--doEditor.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/doEditor.go b/doEditor.go
index 7685389..25051a3 100644
--- a/doEditor.go
+++ b/doEditor.go
@@ -33,6 +33,16 @@ func doEditor() error {
}
os.Remove("/tmp/regex.ready")
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)
}
}