Closed TimoFrenzel closed 1 month ago
Hi, is there a way to log the POST, GET, ... requests with Clockwork when using swoole? Unfortunately, I only get the CMD calls in.
.env
CLOCKWORK_ENABLE = true CLOCKWORK_DATABASE_COLLECT_MODELS_RETRIEVED = false CLOCKWORK_DATABASE_SLOW_THRESHOLD = 50 #null CLOCKWORK_DATABASE_DETECT_DUPLICATE_QUERIES = true CLOCKWORK_ROUTES_ENABLED = true CLOCKWORK_WEB = true CLOCKWORK_TOOLBAR = false CLOCKWORK_REQUESTS_SLOW_THRESHOLD = 100 CLOCKWORK_ARTISAN_COLLECT = true CLOCKWORK_QUEUE_COLLECT = true
swoole_http.php
'instances' => [ 'clockwork', 'clockwork.cache', 'clockwork.storage', 'clockwork.support', 'clockwork.request', 'clockwork.authenticator', 'clockwork.eloquent', 'clockwork.events', 'clockwork.notifications', 'clockwork.queue', 'clockwork.redis', 'clockwork.swift', 'clockwork.views', 'clockwork.xdebug', 'clockwork.lumen', 'auth', 'log', 'redis', 'redis.connection', 'sentry', 'Sentry\State\HubInterface', 'Sentry\ClientBuilderInterface' ], 'pre_resolved' => [ 'view', 'files', 'config', 'cookie', 'routes', 'encrypter', 'hash', 'router', 'translator', 'url', 'log', 'auth', 'session', 'session.store', 'db', 'db.factory', 'cache', 'cache.store', 'redis', 'redis.connection', 'sentry', 'Sentry\State\HubInterface', 'Sentry\ClientBuilderInterface', 'clockwork', 'clockwork.cache', 'clockwork.storage', 'clockwork.support', 'clockwork.request', 'clockwork.authenticator', 'clockwork.eloquent', 'clockwork.events', 'clockwork.notifications', 'clockwork.queue', 'clockwork.redis', 'clockwork.swift', 'clockwork.views', 'clockwork.xdebug', 'clockwork.lumen', 'auth', ],
Greetz Timo
Hey, unfortunately we don't support Swoole directly beyond Laravel Octane. I'll leave this open for a bit if someone else has a solution.
Hi, is there a way to log the POST, GET, ... requests with Clockwork when using swoole? Unfortunately, I only get the CMD calls in.
.env
swoole_http.php
Greetz Timo