itsgoingd / clockwork

Clockwork - php dev tools in your browser - server-side component
https://underground.works/clockwork
MIT License
5.7k stars 320 forks source link

No Logging POST, GET, ... only CMS when using Lumen and Swoole #602

Closed TimoFrenzel closed 1 month ago

TimoFrenzel commented 2 years 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

itsgoingd commented 2 years ago

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.