Issue #2359 remove ignore threads capability since it was a hack to stop
shef and there's a better way to stop shef Change-Id: I8c2fc8279937aca4e15ea52197081c8271d0c55c Former-commit-id:5e2636809d
[formerlyd5239174f6
] [formerly5e2636809d
[formerlyd5239174f6
] [formerly52eaaa17d0
[formerly 99f45c9a2ae2e82ba88dd8df7e2c008bda863a9e]]] Former-commit-id:52eaaa17d0
Former-commit-id:1ac92d7135
[formerly4d51cd6d86
] Former-commit-id:69e4c10344
This commit is contained in:
parent
27cbedca7a
commit
a9c17cd6db
3 changed files with 0 additions and 27 deletions
|
@ -24,7 +24,4 @@
|
||||||
-->
|
-->
|
||||||
<timeToSend>00:45</timeToSend>
|
<timeToSend>00:45</timeToSend>
|
||||||
|
|
||||||
<!-- threads to ignore errors on to keep them from overpowering the other errors -->
|
|
||||||
<ignoreThreads>shefThreadPool</ignoreThreads>
|
|
||||||
|
|
||||||
</logSrvConfig>
|
</logSrvConfig>
|
|
@ -68,9 +68,6 @@ public class LogSrvConfig {
|
||||||
@XmlElement
|
@XmlElement
|
||||||
private String timeToSend;
|
private String timeToSend;
|
||||||
|
|
||||||
@XmlElement
|
|
||||||
private String ignoreThreads;
|
|
||||||
|
|
||||||
public String getFromAddress() {
|
public String getFromAddress() {
|
||||||
return fromAddress;
|
return fromAddress;
|
||||||
}
|
}
|
||||||
|
@ -127,14 +124,6 @@ public class LogSrvConfig {
|
||||||
this.databaseDir = databaseDir;
|
this.databaseDir = databaseDir;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getIgnoreThreads() {
|
|
||||||
return ignoreThreads;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setIgnoreThreads(String ignoreThreads) {
|
|
||||||
this.ignoreThreads = ignoreThreads;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validates that the config has every value set.
|
* Validates that the config has every value set.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -47,15 +47,9 @@ public class DerbyAppender extends AppenderBase<ILoggingEvent> {
|
||||||
|
|
||||||
private DerbyDao dao;
|
private DerbyDao dao;
|
||||||
|
|
||||||
private String[] ignoreThreads;
|
|
||||||
|
|
||||||
public DerbyAppender() {
|
public DerbyAppender() {
|
||||||
super();
|
super();
|
||||||
dao = DerbyDao.getInstance();
|
dao = DerbyDao.getInstance();
|
||||||
String ignore = dao.getConfig().getIgnoreThreads();
|
|
||||||
if (ignore != null) {
|
|
||||||
ignoreThreads = ignore.split(",");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -78,13 +72,6 @@ public class DerbyAppender extends AppenderBase<ILoggingEvent> {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
private boolean shouldStoreMsg(ILoggingEvent event) {
|
private boolean shouldStoreMsg(ILoggingEvent event) {
|
||||||
if (ignoreThreads != null) {
|
|
||||||
for (String ignore : ignoreThreads) {
|
|
||||||
if (event.getThreadName().startsWith(ignore)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue