mirror of
https://github.com/lzh-1625/go_process_manager.git
synced 2025-10-28 02:01:41 +08:00
ignore pty input log
This commit is contained in:
@@ -78,13 +78,11 @@ func (p *ProcessPty) SetTerminalSize(cols, rows int) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (p *ProcessPty) WriteBytes(input []byte) (err error) {
|
func (p *ProcessPty) WriteBytes(input []byte) (err error) {
|
||||||
p.logReportHandler(config.CF.ProcessInputPrefix + string(input))
|
|
||||||
_, err = p.pty.Write(input)
|
_, err = p.pty.Write(input)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *ProcessPty) Write(input string) (err error) {
|
func (p *ProcessPty) Write(input string) (err error) {
|
||||||
p.logReportHandler(config.CF.ProcessInputPrefix + input)
|
|
||||||
_, err = p.pty.Write([]byte(input))
|
_, err = p.pty.Write([]byte(input))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user