cleanup and add a few stuff for http

This commit is contained in:
shoopea
2024-11-17 15:14:36 +01:00
parent 26c324c43c
commit e1806fd27a
14 changed files with 123 additions and 114 deletions

2
ssh.go
View File

@@ -137,7 +137,7 @@ func (s *Ssh) ExecPipe(cmd string) error {
}
s.session = session
if s.session.Setenv("TZ", cfg.Timezone); err != nil {
if err = s.session.Setenv("TZ", cfg.Timezone); err != nil {
log.WithFields(log.Fields{"name": s.name, "cmd": cmd, "call": "session.Setenv", "error": err}).Errorf("")
return err
}