Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

function main returns exit status #1126

Merged
merged 1 commit into from
Aug 9, 2024
Merged

function main returns exit status #1126

merged 1 commit into from
Aug 9, 2024

Conversation

Keksoj
Copy link
Member

@Keksoj Keksoj commented Aug 9, 2024

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

@Keksoj Keksoj merged commit a1556c6 into main Aug 9, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants