diff options
| author | Shulhan <ms@kilabit.info> | 2023-11-30 02:50:50 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-12-01 13:17:30 +0700 |
| commit | cf9fdc1387b7cf33f16fe95ef4bef55c9c008f80 (patch) | |
| tree | 564f94d18e6eb138d7c3b70621bca4f2e3a1f792 /session.go | |
| parent | fa3683edd2d986a26de85479b8a1c2535d069c15 (diff) | |
| download | awwan-cf9fdc1387b7cf33f16fe95ef4bef55c9c008f80.tar.xz | |
all: move wrapping BEGIN and END outside of session
Diffstat (limited to 'session.go')
| -rw-r--r-- | session.go | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -443,8 +443,6 @@ func (ses *Session) executeScriptOnLocal(req *ExecRequest, pos linePosition) (er pos.end = max - 1 } - req.mlog.Outf(`=== BEGIN: %s %s %s`, req.Mode, req.Script, req.LineRange) - for x := pos.start; x <= pos.end; x++ { stmt := req.script.stmts[x] if stmt == nil { @@ -476,7 +474,6 @@ func (ses *Session) executeScriptOnLocal(req *ExecRequest, pos linePosition) (er return err } } - req.mlog.Outf(`=== END`) return nil } @@ -489,8 +486,6 @@ func (ses *Session) executeScriptOnRemote(req *ExecRequest, pos linePosition) (e pos.end = max - 1 } - req.mlog.Outf(`=== BEGIN: %s %s %s`, req.Mode, req.Script, req.LineRange) - for x := pos.start; x <= pos.end; x++ { stmt := req.script.stmts[x] if stmt == nil { @@ -523,7 +518,6 @@ func (ses *Session) executeScriptOnRemote(req *ExecRequest, pos linePosition) (e return err } } - req.mlog.Outf(`=== END`) return nil } |
