diff options
| author | Shulhan <ms@kilabit.info> | 2023-10-26 22:23:58 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-10-26 22:24:16 +0700 |
| commit | f2b0021604e898e78ad53100057fd7da0b2187a6 (patch) | |
| tree | 3aa3dd21cc38261b4a38c6056813d53235fecb48 /testdata | |
| parent | f2da8879166f60ec65671afaebc18b2c4dbb918a (diff) | |
| download | awwan-f2b0021604e898e78ad53100057fd7da0b2187a6.tar.xz | |
all: use "mlog.MultiLogger" to log Request output and error
By using "mlog.MultiLogger" every output or error can be written to
stdout/stderr and additional log writer that can collect both of them,
buffered and returned to the caller.
This changes simplify the HttpResponse to use only single output that
combine both stdout and stderr.
Diffstat (limited to 'testdata')
| -rw-r--r-- | testdata/local/local_test.data | 4 | ||||
| -rw-r--r-- | testdata/play/awwanssh.test/play_test.data | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/testdata/local/local_test.data b/testdata/local/local_test.data index 1901f11..8d2b0b9 100644 --- a/testdata/local/local_test.data +++ b/testdata/local/local_test.data @@ -1,6 +1,6 @@ Test on "local" command. -<<< local:stdout +<<< local:output --> local: 1: echo "hello" hello @@ -9,5 +9,3 @@ hello --> local: 6: echo "local" local - -<<< local:stderr diff --git a/testdata/play/awwanssh.test/play_test.data b/testdata/play/awwanssh.test/play_test.data index 764122b..69840c6 100644 --- a/testdata/play/awwanssh.test/play_test.data +++ b/testdata/play/awwanssh.test/play_test.data @@ -1,6 +1,6 @@ Test on "play" command. -<<< play_with_local:stdout +<<< play_with_local:output --- SSH connection: awwanssh@127.0.0.1:10022 --- SSH identity file: [/home/awwan/.ssh/id_ed25519] @@ -9,5 +9,3 @@ Test on "play" command. --> awwanssh@127.0.0.1:10022: 5: #local: pwd /home/awwan/src - -<<< play_with_local:stderr |
