Update TamagotchiService.java
This commit is contained in:
parent
6ab8fdedc1
commit
2a35e91cdd
1 changed files with 2 additions and 0 deletions
|
@ -87,6 +87,7 @@ public class TamagotchiService {
|
|||
.forEach(device -> {
|
||||
deviceRegistry.remove(device.getId());
|
||||
sendTamagotchiDefunctNotifiction(device.getId());
|
||||
LOGGER.info("{} has died", device.getId());
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -112,6 +113,7 @@ public class TamagotchiService {
|
|||
|
||||
try {
|
||||
publisherService.publish(m);
|
||||
LOGGER.info("defunct notification sent for {}", device.getId());
|
||||
} catch (Exception ex) {
|
||||
LOGGER.error("sendTamagotchiDefunctNotifiction failed: {}", ex.getMessage());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue