Update smart-ssh config and improve logging output
This commit is contained in:
@@ -10,12 +10,17 @@ logging:
|
||||
format: "console"
|
||||
|
||||
smart_aliases:
|
||||
# Desktop connection - tries local network first, falls back to Tailscale
|
||||
desktop:
|
||||
primary: "desktop-local" # Use this SSH config entry when local network is available
|
||||
fallback: "desktop" # Use this SSH config entry when local network is not available
|
||||
check_host: "192.168.86.22" # IP address to ping for connectivity test
|
||||
timeout: "2s" # Timeout for connectivity check
|
||||
primary: "desktop-local"
|
||||
fallback: "desktop"
|
||||
check_host: "192.168.1.254"
|
||||
timeout: "2s"
|
||||
|
||||
laptop:
|
||||
primary: "laptop-local"
|
||||
fallback: "laptop"
|
||||
check_host: "192.168.1.253"
|
||||
timeout: "2s"
|
||||
|
||||
# Background SSH Tunnel Definitions
|
||||
tunnels:
|
||||
|
@@ -836,7 +836,10 @@ func initLogging(cfg LoggingConfig) {
|
||||
}
|
||||
|
||||
if strings.ToLower(cfg.Format) == "console" {
|
||||
log.Logger = log.Output(zerolog.ConsoleWriter{Out: os.Stderr})
|
||||
log.Logger = log.Output(zerolog.ConsoleWriter{
|
||||
Out: os.Stderr,
|
||||
TimeFormat: "15:04:05",
|
||||
})
|
||||
} else {
|
||||
log.Logger = log.Output(os.Stderr)
|
||||
}
|
||||
|
Reference in New Issue
Block a user