Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase the verbosity of no valid GUIDs from DEBUG to NOTICE. #65

Merged
merged 2 commits into from
Apr 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ ids to ignore.
$ docker exec -ti watchstate console servers:edit --key options.ignore --set 'id1,id2,id3' -- [SERVER_NAME]
```

If ignored a library by mistake you can run the same command again and omit the id, or you can just delete the key
If you ignored a library by mistake you can run the same command again and omit the id, or you can just delete the key
entirely by running the following command

```bash
Expand Down Expand Up @@ -163,7 +163,7 @@ after that you can do `ws command` for example, `ws db:list`
Sometimes there are problems related to http/2.0, so before reporting bug please try running the following command

```bash
$ docker exec -ti watchstate console servers:edit--key options.client.http_version --set 1.0 -- [SERVER_NAME]
$ docker exec -ti watchstate console servers:edit --key options.client.http_version --set 1.0 -- [SERVER_NAME]
```

if it does not fix your problem, please open issue about it.
Expand All @@ -173,6 +173,6 @@ configuration](https://symfony.com/doc/current/http_client.html#configuration) s
under `options.client.` key for example if you want to increase the timeout you can do

```bash
$ docker exec -ti watchstate console servers:edit--key options.client.timeout --set 300 -- [SERVER_NAME]
$ docker exec -ti watchstate console servers:edit --key options.client.timeout --set 300 -- [SERVER_NAME]
```

2 changes: 1 addition & 1 deletion src/Libs/Mappers/Import/DirectMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function loadData(DateTimeInterface|null $date = null): ImportInterface
public function add(string $bucket, string $name, StateInterface $entity, array $opts = []): self
{
if (!$entity->hasGuids()) {
$this->logger->debug(sprintf('Ignoring %s. No valid GUIDs.', $name));
$this->logger->info(sprintf('Ignoring %s. No valid GUIDs.', $name));
Data::increment($bucket, $entity->type . '_failed_no_guid');
return $this;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Libs/Mappers/Import/MemoryMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function loadData(DateTimeInterface|null $date = null): self
public function add(string $bucket, string $name, StateInterface $entity, array $opts = []): self
{
if (!$entity->hasGuids()) {
$this->logger->debug(sprintf('Ignoring %s. No valid GUIDs.', $name));
$this->logger->notice(sprintf('Ignoring %s. No valid GUIDs.', $name));
Data::increment($bucket, $entity->type . '_failed_no_guid');
return $this;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Libs/Servers/JellyfinServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -1141,7 +1141,7 @@ protected function processImport(
}

if (!$this->hasSupportedIds((array)($item->ProviderIds ?? []))) {
$this->logger->debug(
$this->logger->notice(
sprintf('Ignoring %s. No valid GUIDs.', $iName),
(array)($item->ProviderIds ?? [])
);
Expand Down
2 changes: 1 addition & 1 deletion src/Libs/Servers/PlexServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -1169,7 +1169,7 @@ protected function processImport(
}

if (!$this->hasSupportedIds($item->Guid)) {
$this->logger->debug(sprintf('Ignoring %s. No valid GUIDs.', $iName), $item->Guid ?? []);
$this->logger->notice(sprintf('Ignoring %s. No valid GUIDs.', $iName), $item->Guid ?? []);
Data::increment($this->name, $type . '_ignored_no_supported_guid');
return;
}
Expand Down