Closed Keksoj closed 3 months ago
Now the error of the main function is not only logged, but also the exit status is 1:
$ sozu -c sozu.toml metrics get -t 1 12:18 Logs will be sent to stdout Access logs will be sent to Some("stdout") 2024-08-09T10:19:22.023544Z 1723198762023544205 39111 DEBUG CTL sozu::ctl applying timeout 1ms 2024-08-09T10:19:22.023571Z 1723198762023571406 39111 DEBUG CTL sozu::ctl Executing command Metrics { cmd: Get { list: false, refresh: None, names: [], clusters: [], backends: [], no_clusters: false, workers: false } } 2024-08-09T10:19:22.024556Z 1723198762024556744 39111 DEBUG CTL sozu::ctl::command Processing: Querrying metrics... could not read message on a blocking channel: Timeout is reached: 1ms Error: Cli(ReadBlocking(TimeoutReached(1ms))) $ echo $? 1
Now the error of the main function is not only logged, but also the exit status is 1: