better log
This commit is contained in:
@@ -349,7 +349,7 @@ abstract class Multistream(
|
|||||||
eventLock.withLock {
|
eventLock.withLock {
|
||||||
if (event.type == UpstreamChangeEvent.ChangeType.REMOVED) {
|
if (event.type == UpstreamChangeEvent.ChangeType.REMOVED) {
|
||||||
removeUpstream(event.upstream.getId()).takeIf { it }?.let {
|
removeUpstream(event.upstream.getId()).takeIf { it }?.let {
|
||||||
log.error("Upstream ${event.upstream.getId()} with chain $chain has been removed")
|
log.warn("Upstream ${event.upstream.getId()} with chain $chain has been removed")
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (event.upstream is CachesEnabled) {
|
if (event.upstream is CachesEnabled) {
|
||||||
@@ -359,7 +359,7 @@ abstract class Multistream(
|
|||||||
if (!started) {
|
if (!started) {
|
||||||
start()
|
start()
|
||||||
}
|
}
|
||||||
log.error("Upstream ${event.upstream.getId()} with chain $chain has been added")
|
log.info("Upstream ${event.upstream.getId()} with chain $chain has been added")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user