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: 99f45c9a2ae2e82ba88dd8df7e2c008bda863a9e
This commit is contained in:
Nate Jensen 2014-01-23 18:09:50 -06:00
parent a92f6e9bb6
commit 52eaaa17d0
3 changed files with 0 additions and 27 deletions

View file

@ -24,7 +24,4 @@
-->
<timeToSend>00:45</timeToSend>
<!-- threads to ignore errors on to keep them from overpowering the other errors -->
<ignoreThreads>shefThreadPool</ignoreThreads>
</logSrvConfig>

View file

@ -68,9 +68,6 @@ public class LogSrvConfig {
@XmlElement
private String timeToSend;
@XmlElement
private String ignoreThreads;
public String getFromAddress() {
return fromAddress;
}
@ -127,14 +124,6 @@ public class LogSrvConfig {
this.databaseDir = databaseDir;
}
public String getIgnoreThreads() {
return ignoreThreads;
}
public void setIgnoreThreads(String ignoreThreads) {
this.ignoreThreads = ignoreThreads;
}
/**
* Validates that the config has every value set.
*/

View file

@ -47,15 +47,9 @@ public class DerbyAppender extends AppenderBase<ILoggingEvent> {
private DerbyDao dao;
private String[] ignoreThreads;
public DerbyAppender() {
super();
dao = DerbyDao.getInstance();
String ignore = dao.getConfig().getIgnoreThreads();
if (ignore != null) {
ignoreThreads = ignore.split(",");
}
}
@Override
@ -78,13 +72,6 @@ public class DerbyAppender extends AppenderBase<ILoggingEvent> {
* @return
*/
private boolean shouldStoreMsg(ILoggingEvent event) {
if (ignoreThreads != null) {
for (String ignore : ignoreThreads) {
if (event.getThreadName().startsWith(ignore)) {
return false;
}
}
}
return true;
}
}