aboutsummaryrefslogtreecommitdiff
path: root/exec_request.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2026-02-06 03:50:24 +0700
committerShulhan <ms@kilabit.info>2026-02-06 03:50:24 +0700
commita3c27356bfe3e56809f579b617e02829a7ea0a68 (patch)
treeef49c89bb4a404c0fae2ca5b6681969aef15be17 /exec_request.go
parentc572a44dddf25e07f2f25cc6004370ad505f3ded (diff)
downloadawwan-a3c27356bfe3e56809f579b617e02829a7ea0a68.tar.xz
all: use space log prefix instead of dummy date
Using dummy date make the test output hard to read in verbose option, because the program logs mixed with the test logs.
Diffstat (limited to 'exec_request.go')
-rw-r--r--exec_request.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/exec_request.go b/exec_request.go
index 4e6721c..78d6670 100644
--- a/exec_request.go
+++ b/exec_request.go
@@ -16,6 +16,8 @@ import (
// This is set as variable to make it easy overwriting it in testing.
var defLogTimeFormat = `2006/01/02 15:04:05`
+var defLogPrefix = ``
+
// ExecRequest request for executing local or remote script.
// Each request define the Mode of execution, Script file to be executed,
// and the lineRange -- list of line numbers to be executed.
@@ -84,7 +86,7 @@ func (req *ExecRequest) init(workDir string) (err error) {
namedStderr = mlog.NewNamedWriter(`stderr`, os.Stderr)
)
- req.mlog = mlog.NewMultiLogger(defLogTimeFormat, ``,
+ req.mlog = mlog.NewMultiLogger(defLogTimeFormat, defLogPrefix,
[]mlog.NamedWriter{namedStdout},
[]mlog.NamedWriter{namedStderr},
)