-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Ensure that the errorLogs() function captures error logs from a script #6083
Comments
This is an example with S3 Copy that fails. id: error_logs_demo
namespace: company.team
tasks:
- id: copy
type: io.kestra.plugin.aws.s3.Copy
accessKeyId: "<access-key>"
secretKeyId: "<secret-key>"
region: "eu-central-1"
from:
bucket: "my-bucket"
key: "path/to/file"
to:
bucket: "my-bucket2"
key: "path/to/file2"
errors:
- id: alert
type: io.kestra.plugin.core.log.Log
message: list of error logs — {{ errorLogs() }}
|
@anna-geller for your two examples, Python wrote logs in WARNING that why they are not returned by the |
yup, this is unfortunate since this is an actual error in the Python script (value error + zero division error) |
It's because we log the standard error as WARNING and not ERROR |
can we change it? 🙏 we should (even if this would mean a BC) |
This needs to be investigated and validated by Ludo, better to open a new issue to discuss that. |
ok, follow up issue kestra-io/plugin-scripts#190 |
Feature description
Another example:
The only error log it captures is
Command failed with exit code 1
- the actual log with a reason why the task failed is not captured.The text was updated successfully, but these errors were encountered: