feat(logging): migrate VikonIntegration to vikon channel
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user