better error emitting for mismatched rules

This commit is contained in:
Fangjin Yang 2012-12-14 09:25:39 -08:00
parent 8c7fd3bc49
commit 18692a1214
1 changed files with 6 additions and 1 deletions

View File

@ -68,7 +68,12 @@ public class DruidMasterRuleRunner implements DruidMasterHelper
}
if (!foundMatchingRule) {
log.makeAlert("Unable to find a matching rule for segment[%s]", segment.getIdentifier()).emit();
log.makeAlert(
"Unable to find a matching rule for dataSource[%s]",
segment.getDataSource()
)
.addData("segment", segment.getIdentifier())
.emit();
}
}