4 Commits
v2.6 ... v2.9

Author SHA1 Message Date
6d2ab00fa7 mod: revert changes
All checks were successful
Go Project Action / Spell-check and test go project (push) Successful in 50s
Release Go Application / Release go project (release) Successful in 50s
Logging will be done through `zlog` dependency for *zig* based
applications. `zlog` shall be configured such that it should not log to
*stderr* and should use the "log" file instead. This way the log file is
both used by `serve` and by the running application. Logging could also
happen in a different file and is independent of the logging of `serve`,
however for now I want the logging to also happen in the same file.
2025-11-01 00:21:37 +01:00
09e4a5d646 doc: increament version
All checks were successful
Go Project Action / Spell-check and test go project (push) Successful in 46s
Release Go Application / Release go project (release) Successful in 46s
2025-10-31 23:27:38 +01:00
904f585c4d mod: use log file as stderr for ssh command
Some checks failed
Go Project Action / Spell-check and test go project (push) Has been cancelled
2025-10-31 23:26:58 +01:00
f78e3092fb mod: copy stderr from ssh session to locally running processes stderr
All checks were successful
Go Project Action / Spell-check and test go project (push) Successful in 51s
Release Go Application / Release go project (release) Successful in 46s
Log the `serve` version in the beginning with a closing log message.
2025-10-31 23:03:30 +01:00

View File

@@ -56,11 +56,6 @@ func setupSshServer(host string, port string, host_key_path string, users map[st
func(next ssh.Handler) ssh.Handler {
return func(s ssh.Session) {
cmd := wish.Command(s, name, args...)
file, err := os.OpenFile("log", os.O_APPEND|os.O_WRONLY|os.O_CREATE, 0600)
if err != nil {
wish.Fatalln(s, err)
}
cmd.SetStderr(file)
if err := cmd.Run(); err != nil {
wish.Fatalln(s, err)
}