You are viewing the docs for v1.3, which is not the latest release.
View latest

Script Task stderr Output Now Logged as ERROR Level

For the complete documentation index, see llms.txt. For a full content snapshot, see llms-full.txt. Append .md to any kestra.io/docs/* URL for plain Markdown.

Log level for stderr output

STDERR Logged at ERROR Level in Script Tasks

Script tasks now log output sent to stderr at the ERROR level instead of WARNING (PR #6383; Issue #190).

Example

Here is an example of a script task that logs an error message to stderr:

yamlid: error_logs_demo
namespace: company.team

tasks:
  - id: fail
    type: io.kestra.plugin.scripts.python.Script
    taskRunner:
      type: io.kestra.plugin.core.runner.Process
    script: |
      raise ValueError("An error occurred: This is a manually raised exception.")

errors:
  - id: alert
    type: io.kestra.plugin.core.log.Log
    message: list of error logs — {{ errorLogs() }}

Before 0.21.0

Here is the output of the fail task before the change:

Script task stderr output logged at WARNING level before 0.21.0

After 0.21.0

Here is the output of the fail task after the change:

Script task stderr output logged at ERROR level after 0.21.0