Skip to content

Commit 609c988

Browse files
committed
fix: changing logging level for expired subscription, adding guilty id
1 parent f993821 commit 609c988

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Logic/LicenceVerification.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function communityCheck(string $systemId, string $secret): bool
3131
} else {
3232
$validUntil = Carbon::parse($validUntil);
3333
if (now()->greaterThan($validUntil)) {
34-
Log::error('Subscription is expired.');
34+
Log::warning("Subscription for $systemId is expired.");
3535

3636
return false;
3737
}
@@ -69,7 +69,7 @@ public function enterpriseCheck(string $systemId, string $secret): bool
6969

7070
return false;
7171
} catch (RequestException $e) {
72-
Log::warning('My subscription error, error code returned: '.$e->response->status());
72+
Log::warning("My subscription error for $systemId, error code returned: ".$e->response->status());
7373

7474
return false;
7575
}

0 commit comments

Comments
 (0)