Skip to content

Commit

Permalink
Merge pull request #43 from Team-MostWanted/feature/extra-logging-on-…
Browse files Browse the repository at this point in the history
…script-errors

Added extra logging on script error
  • Loading branch information
TheM1984 authored Nov 15, 2024
2 parents 66a1598 + 066bd38 commit d3794e2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) with the minor change that we use a prefix instead of grouping.
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.17.0] - 2024-11-15
- Added: extra logging on executed script error

## [1.16.0] - 2024-10-14
- Security: dependency and security updates

Expand Down
2 changes: 2 additions & 0 deletions probe.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ func run(cmd *exec.Cmd) runResult {
if errors.As(err, &e) {
result.exitCode = e.ExitCode()
}

log.Error("[Run] encountered an error: ", result.stderr)
}

log.Debug("[Run] end duration: ", result.exitCode)
Expand Down

0 comments on commit d3794e2

Please sign in to comment.