diff --git a/handlers/ConsoleHandler.php b/handlers/ConsoleHandler.php index 0b110f2..9b9bdea 100644 --- a/handlers/ConsoleHandler.php +++ b/handlers/ConsoleHandler.php @@ -15,7 +15,7 @@ public function bootstrap($app) function () use ($app) { foreach ($app->requestedParams as $key => $value) { $this->getAgent()->backgroundJob(); - $this->getAgent()->addCustomParameter($key, (string)$value); + $this->getAgent()->addCustomParameter($key, var_export($value)); } } ); diff --git a/handlers/WebHandler.php b/handlers/WebHandler.php index 8ac986a..e43c09a 100644 --- a/handlers/WebHandler.php +++ b/handlers/WebHandler.php @@ -42,7 +42,7 @@ function () use ($app, &$agent) { Application::EVENT_AFTER_ACTION, function () use ($app) { foreach ($app->controller->actionParams as $key => $value) { - $this->getAgent()->addCustomParameter($key, (string)$value); + $this->getAgent()->addCustomParameter($key, var_export($value)); } } );