Skip to content

Commit d30de66

Browse files
wenposbleskes
authored andcommitted
tracelLogExclude to tracerLogExclude (#20970)
fix a variable name for misspelling "tracerLogExclude" to "tracelLogExclude"
1 parent ba6f759 commit d30de66

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

core/src/main/java/org/elasticsearch/transport/TransportService.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,14 +114,14 @@ protected boolean removeEldestEntry(Map.Entry eldest) {
114114
private final Logger tracerLog;
115115

116116
volatile String[] tracerLogInclude;
117-
volatile String[] tracelLogExclude;
117+
volatile String[] tracerLogExclude;
118118

119119
/** if set will call requests sent to this id to shortcut and executed locally */
120120
volatile DiscoveryNode localNode = null;
121121

122122
/**
123123
* Build the service.
124-
*
124+
*
125125
* @param clusterSettings if non null the the {@linkplain TransportService} will register with the {@link ClusterSettings} for settings
126126
* updates for {@link #TRACE_LOG_EXCLUDE_SETTING} and {@link #TRACE_LOG_INCLUDE_SETTING}.
127127
*/
@@ -174,7 +174,7 @@ void setTracerLogInclude(List<String> tracerLogInclude) {
174174
}
175175

176176
void setTracerLogExclude(List<String> tracelLogExclude) {
177-
this.tracelLogExclude = tracelLogExclude.toArray(Strings.EMPTY_ARRAY);
177+
this.tracerLogExclude = tracelLogExclude.toArray(Strings.EMPTY_ARRAY);
178178
}
179179

180180
@Override
@@ -589,8 +589,8 @@ private boolean shouldTraceAction(String action) {
589589
return false;
590590
}
591591
}
592-
if (tracelLogExclude.length > 0) {
593-
return !Regex.simpleMatch(tracelLogExclude, action);
592+
if (tracerLogExclude.length > 0) {
593+
return !Regex.simpleMatch(tracerLogExclude, action);
594594
}
595595
return true;
596596
}

0 commit comments

Comments
 (0)