Log infobox removal only if infobox was removed
Debug log infobox removal from infobox manager only if infobox was really removed. Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
@@ -76,18 +76,18 @@ public class InfoBoxManager
|
|||||||
|
|
||||||
public void removeInfoBox(InfoBox infoBox)
|
public void removeInfoBox(InfoBox infoBox)
|
||||||
{
|
{
|
||||||
log.debug("Removing InfoBox {}", infoBox);
|
|
||||||
if (infoBoxes.remove(infoBox))
|
if (infoBoxes.remove(infoBox))
|
||||||
{
|
{
|
||||||
|
log.debug("Removed InfoBox {}", infoBox);
|
||||||
refreshInfoBoxes();
|
refreshInfoBoxes();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void removeIf(Predicate<InfoBox> filter)
|
public void removeIf(Predicate<InfoBox> filter)
|
||||||
{
|
{
|
||||||
log.debug("Removing InfoBoxes for filter {}", filter);
|
|
||||||
if (infoBoxes.removeIf(filter))
|
if (infoBoxes.removeIf(filter))
|
||||||
{
|
{
|
||||||
|
log.debug("Removed InfoBoxes for filter {}", filter);
|
||||||
refreshInfoBoxes();
|
refreshInfoBoxes();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user