mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-28 06:41:19 +01:00
Include deviceId in Exception message
Change-Id: I1f730c99090bd5078ca24016675208e93ce476bd
This commit is contained in:
parent
645bf200d9
commit
3a6f7cdc87
@ -62,7 +62,7 @@ public class DeviceClockManager implements DeviceClockService, DeviceClockProvid
|
|||||||
log.trace("term info for {} is: {}", deviceId, term);
|
log.trace("term info for {} is: {}", deviceId, term);
|
||||||
|
|
||||||
if (term == null) {
|
if (term == null) {
|
||||||
throw new IllegalStateException("Requesting timestamp for a deviceId without mastership");
|
throw new IllegalStateException("Requesting timestamp for " + deviceId + " without mastership");
|
||||||
}
|
}
|
||||||
return new MastershipBasedTimestamp(term.termNumber(), ticker.incrementAndGet());
|
return new MastershipBasedTimestamp(term.termNumber(), ticker.incrementAndGet());
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user