Update smart-ssh config and improve logging output
Some checks failed
Ansible Lint Check / check-ansible (push) Failing after 13s
Nix Format Check / check-format (push) Failing after 24s
Python Lint Check / check-python (push) Failing after 7s

This commit is contained in:
2025-07-31 13:42:13 +02:00
parent 6eb58e2c87
commit e274ae7ae1
4 changed files with 23 additions and 15 deletions

View File

@@ -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:

View File

@@ -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)
}