Skip to content

add job name in log file when logging an error. #21

@moshavnik

Description

@moshavnik

Problem

What problem does this solve?
currently, the log file contains an entry for each failed request to the ai source. the log posts the response from the ai to help analyzing the problem.
however, in our case, there is a single error during a period with a lot of running jobs (all of them using the ai at the same time) and there is no indication in the log which job suffered the error.
in addition - the explainError method doesn't fail, so we don't know which job failed to use the ai mechanism and need to sort through a lot of jobs in order to find it.

Solution

Describe your proposed solution:
add the job complete name to the log, and the build number - right next to the error message.

Alternatives

What alternative approaches have you considered?
make the explainError method return a value which can be analyzes whether the ai mechanism returned a response or not.

Additional Context

Screenshots, examples, or other relevant information:

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementFor changelog: Minor enhancement. use `major-rfe` for changes to be highlighted

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions