Skip to content

Commit

Permalink
apimon: prefix rabbit/amqp errors
Browse files Browse the repository at this point in the history
this also fixes a bug where amqp errors were sent as ints, and therefore
not indexed
  • Loading branch information
erankor committed Jan 2, 2022
1 parent 780c109 commit 736d2cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions infra/monitor/KalturaMonitorClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ protected static function monitorUpload()

if ($curFile['error'])
{
$errorCode = strval($curFile['error']);
$errorCode = 'UPLOAD_' . $curFile['error'];
}
}

Expand Down Expand Up @@ -676,7 +676,7 @@ public static function monitorRabbitAccess($dataSource, $queryType, $queryTook,

if ($errorCode)
{
$data[self::FIELD_ERROR_CODE] = $errorCode;
$data[self::FIELD_ERROR_CODE] = 'AMQP_' . $errorCode;
}

self::writeDeferredEvent($data);
Expand Down

0 comments on commit 736d2cc

Please sign in to comment.