summaryrefslogtreecommitdiff
path: root/doEditor.go
diff options
context:
space:
mode:
authorCastor Regex <[email protected]>2025-08-25 17:24:00 -0500
committerJeff Carr <[email protected]>2025-08-25 17:24:00 -0500
commit25e483898fed7f569068612635e3321a3facc37e (patch)
treedcfac49a82bdb25ce79feff132d7c201fd0f644d /doEditor.go
parent3db9d84b631fbc3f4971c43e076fcf8da1ea7a70 (diff)
feat(regex): print regex.log and sleep after ready
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)
}
}