When deploying to multiple hosts in one invocation using --targets, the log output of deploy-rs is unnecessarily unclear on which host an operation affects. This is especially confusing in case one of the deployments fails, but the others succeed, as there's no obvious indication which deploy failed, only that one of them did.
As an example, consider:
āÆ deploy --targets .#chaski .#flora --dry-activate -s
š ā¹ļø [deploy] [INFO] Evaluating flake in .
š ā¹ļø [deploy] [INFO] Evaluating flake in .
š ā¹ļø [deploy] [INFO] The following profiles are going to be deployed:
[chaski.system]
user = "root"
ssh_user = "root"
path = "/nix/store/6kj8i7d0yglnlkzpmxdn9ydz1l9l3hln-activatable-nixos-system-chaski-23.11.20240406.e38d7cb"
hostname = "chaski"
ssh_opts = []
[flora.system]
user = "root"
ssh_user = "root"
path = "/nix/store/j9wk9wy0v0xq2c0dgxh0diqvgna0wc3f-activatable-nixos-system-flora-23.11.20240406.e38d7cb"
hostname = "flora"
ssh_opts = []
š ā¹ļø [deploy] [INFO] Building profile `system` for node `chaski`
š ā¹ļø [deploy] [INFO] Building profile `system` for node `flora`
š ā¹ļø [deploy] [INFO] Copying profile `system` to node `chaski`
š ā¹ļø [deploy] [INFO] Copying profile `system` to node `flora`
š ā [deploy] [ERROR] Failed to push profile: Nix copy command resulted in a bad exit code: Some(1)
It'd be much nicer if the log messages would simply include the hostname again, so the last line would start with š ā [deploy to flora] [ERROR] or something similar.
When deploying to multiple hosts in one invocation using
--targets
, the log output ofdeploy-rs
is unnecessarily unclear on which host an operation affects. This is especially confusing in case one of the deployments fails, but the others succeed, as there's no obvious indication which deploy failed, only that one of them did.As an example, consider:
It'd be much nicer if the log messages would simply include the hostname again, so the last line would start with
š ā [deploy to flora] [ERROR]
or something similar.