feat(logging): migrate VikonIntegration to vikon channel

This commit is contained in:
F4ilji
2026-07-05 23:13:51 +05:00
parent dfe8de0680
commit 720aa4d0ae
10 changed files with 34 additions and 34 deletions
@@ -24,7 +24,7 @@ class FilesystemTask
public function safeRemove(string $path, string $base, bool $recursive = false): bool
{
if (!$this->isPathSafe($path, $base)) {
Log::warning('Path traversal blocked', ['path' => $path, 'base' => $base]);
Log::channel('vikon')->warning('Path traversal blocked', ['path' => $path, 'base' => $base]);
return false;
}
if (!file_exists($path)) return true;
@@ -23,7 +23,7 @@ class PollPartStatusTask
$body = $response->json();
$status = $body['status'] ?? -2;
Log::info('Vikon poll part status', [
Log::channel('vikon')->info('Vikon poll part status', [
'operation' => $operationIdentity,
'status' => $status,
'attempt' => $attempt + 1,
@@ -32,7 +32,7 @@ class ValidateTokenTask
return $valid;
} catch (\Throwable $e) {
Log::warning('Vikon token validation failed', ['error' => $e->getMessage()]);
Log::channel('vikon')->warning('Vikon token validation failed', ['error' => $e->getMessage()]);
return false;
}
}