From dd7c8dd35cd7905d0711780da2d47b9a5a1013b0 Mon Sep 17 00:00:00 2001 From: bertrandda Date: Tue, 3 Dec 2024 23:41:53 +0100 Subject: [PATCH] Fix log --- server/services/google-cast/lib/google_cast.setValue.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/services/google-cast/lib/google_cast.setValue.js b/server/services/google-cast/lib/google_cast.setValue.js index fa4d6d539d..028e17f166 100644 --- a/server/services/google-cast/lib/google_cast.setValue.js +++ b/server/services/google-cast/lib/google_cast.setValue.js @@ -27,8 +27,9 @@ async function setValue(device, deviceFeature, value, options) { client.setVolume({ level: options.volume / 100 }, (err, newvol) => { if (err) { logger.debug('there was an error setting the volume'); + } else { + logger.debug('volume changed to %s', newvol); } - logger.debug('volume changed to %s', newvol); }); }