fix: correctly log unrecoverable serve errors
This commit is contained in:
@@ -58,7 +58,7 @@ func setupSshServer(host string, port string, host_key_path string, users map[st
|
||||
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.Fatalf(s, "Could not create or open log file. err: %w", err)
|
||||
wish.Fatalln(s, err)
|
||||
}
|
||||
cmd.SetStderr(file)
|
||||
if err := cmd.Run(); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user