Changing log priority of some messages

This commit is contained in:
bernatx 2022-07-22 20:42:48 +02:00 committed by bernat
parent c5e03e5336
commit 5c4b37c710
1 changed files with 3 additions and 3 deletions

View File

@ -31,14 +31,14 @@ namespace client {
}
void ServerSideSensor::Listen(CallbackFunctionType callback) {
log_warning("calling sensor Listen() ", GetDisplayId());
log_debug("calling sensor Listen() ", GetDisplayId());
log_debug(GetDisplayId(), ": subscribing to stream");
GetEpisode().Lock()->SubscribeToSensor(*this, std::move(callback));
_is_listening = true;
}
void ServerSideSensor::Stop() {
log_warning("calling sensor Stop() ", GetDisplayId());
log_debug("calling sensor Stop() ", GetDisplayId());
if (!_is_listening) {
log_warning(
"attempting to unsubscribe from stream but sensor wasn't listening:",
@ -50,7 +50,7 @@ namespace client {
}
bool ServerSideSensor::Destroy() {
log_warning("calling sensor Destroy() ", GetDisplayId());
log_debug("calling sensor Destroy() ", GetDisplayId());
if (IsListening()) {
Stop();
}