Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
- Agent updates will clean up unneeded artifacts. {issue}693[693] {issue}694[694] {pull}752[752]
- Use the Elastic Agent configuration directory as the root of the `inputs.d` folder. {issues}663[663]
- Fix a panic caused by a race condition when installing the Elastic Agent. {issues}806[806]
- Use at least warning level for all status logs {pull}1218[1218]

==== New features

Expand Down
7 changes: 3 additions & 4 deletions internal/pkg/core/status/reporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,9 @@ func (r *controller) updateStatus() {
}

func (r *controller) logStatus(status AgentStatusCode, message string) {
logFn := r.log.Infof
if status == Degraded {
logFn = r.log.Warnf
} else if status == Failed {
// Use at least warning level log for all statuses to make sure they are visible in the logs
logFn := r.log.Warnf
if status == Failed {
logFn = r.log.Errorf
}

Expand Down