Skip to content

Commit 49bde5d

Browse files
authored
Remove DEBUG-level default logging from actions (#51459)
In 2bb31fe (v0.6.0!) we added DEBUG-level logging to the default config of action loggers "for easier debugging". This change to the default config lives on to this day. It does not obviously make debugging any easier any more, but it does result in a good deal of log noise sometimes. This commit removes this special case from the default config. Closes #51198
1 parent 977cce0 commit 49bde5d

File tree

2 files changed

+33
-4
lines changed

2 files changed

+33
-4
lines changed

distribution/src/config/log4j2.properties

-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
status = error
22

3-
# log action execution errors for easier debugging
4-
logger.action.name = org.elasticsearch.action
5-
logger.action.level = debug
6-
73
appender.console.type = Console
84
appender.console.name = console
95
appender.console.layout.type = PatternLayout
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
[[breaking-changes-7.7]]
2+
== Breaking changes in 7.7
3+
++++
4+
<titleabbrev>7.7</titleabbrev>
5+
++++
6+
7+
This section discusses the changes that you need to be aware of when migrating
8+
your application to Elasticsearch 7.7.
9+
10+
See also <<release-highlights>> and <<es-release-notes>>.
11+
12+
coming[7.7.0]
13+
14+
//NOTE: The notable-breaking-changes tagged regions are re-used in the
15+
//Installation and Upgrade Guide
16+
17+
//tag::notable-breaking-changes[]
18+
19+
//end::notable-breaking-changes[]
20+
21+
[discrete]
22+
[[breaking_77_logging_changes]]
23+
=== Logging changes
24+
25+
[discrete]
26+
==== Loggers under `org.elasticsearch.action` now log at `INFO` level by default
27+
28+
The default log level for most loggers is `INFO`, but in earlier versions
29+
loggers in the `org.elasticsearch.action.*` hierarchy emitted log messages at
30+
`DEBUG` level by default. This sometimes resulted in a good deal of unnecessary
31+
log noise. From 7.7 onwards the default log level for logger in this hierarchy
32+
is now `INFO`, in line with most other loggers. If needed, you can recover the
33+
pre-7.7 default behaviour by adjusting your <<logging>>.

0 commit comments

Comments
 (0)