Skip to content

Commit d876aeb

Browse files
committed
Reduced the level of push is disabled log message to debug instead of Error
1 parent a2e3a94 commit d876aeb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Libs/helpers.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ function queuePush(iState $entity, bool $remove = false): void
547547
$logger = Container::get(iLogger::class);
548548

549549
if (false === (bool)Config::get('push.enabled', false)) {
550-
$logger->error("Push is disabled. Unable to push '{via}: {entity}'.", [
550+
$logger->debug("Push is disabled. Unable to push '{via}: {entity}'.", [
551551
'via' => $entity->via,
552552
'entity' => $entity->getName()
553553
]);

src/Listeners/ProcessPushEvent.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public function __invoke(DataEvent $e): DataEvent
145145
'id' => $item->id,
146146
'via' => $item->via,
147147
'title' => $item->getName(),
148-
'state' => $item->isWatched() ? 'watched' : 'unwatched',
148+
'state' => $item->isWatched() ? 'played' : 'unplayed',
149149
]);
150150

151151
foreach ($this->queue->getQueue() as $response) {

0 commit comments

Comments
 (0)