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

[request] export Fatal for the service.Logger #180

Open
artemklevtsov opened this issue Feb 18, 2025 · 2 comments
Open

[request] export Fatal for the service.Logger #180

artemklevtsov opened this issue Feb 18, 2025 · 2 comments
Labels
enhancement New feature or request needs more info An issue that may be a bug or useful feature, but requires more information

Comments

@artemklevtsov
Copy link

Hi,

It would be useful for the some cases when development benthos plugins.
I can make PR If this does not contradict the development policy.

@mihaitodor
Copy link
Collaborator

mihaitodor commented Feb 18, 2025

We have a crash processor now for this particular use case. Does that help you?

@mihaitodor mihaitodor reopened this Feb 18, 2025
@mihaitodor mihaitodor added enhancement New feature or request needs more info An issue that may be a bug or useful feature, but requires more information labels Feb 18, 2025
@artemklevtsov
Copy link
Author

artemklevtsov commented Feb 19, 2025

I know about crash.
My case to stop input itself and service with non zero exit code. Now I use service.ErrEndOfInput but it exit with zero status code. Other errors restart input. Is there any way to stop input and app with error except panic?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs more info An issue that may be a bug or useful feature, but requires more information
Projects
None yet
Development

No branches or pull requests

2 participants