How identify an error belongs which app?

when I installed some apps, the log showed many error messages. however, there seems to be no clue which app caused these errors.


the details:

ErrorCall to undefined method OC\Server::getEventDispatcher()

  1. /var/www/html/lib/private/AppFramework/Bootstrap/Coordinator.phpline 200
OCA\Metadata\AppInfo\Application->boot
(
  [
    "OC\\AppFramework\\Bootstrap\\BootContext"
  ]
)
  1. /var/www/html/lib/private/App/AppManager.phpline 434
OC\AppFramework\Bootstrap\Coordinator->bootApp
(
  "metadata"
)
  1. /var/www/html/lib/private/App/AppManager.phpline 213
OC\App\AppManager->loadApp
(
  "metadata"
)
  1. /var/www/html/lib/private/legacy/OC_App.phpline 125
OC\App\AppManager->loadApps
(
  []
)
  1. /var/www/html/lib/base.phpline 1049
OC_App::loadApps
()
  1. /var/www/html/index.phpline 39
OC::handleRequest
()

Raw log entry

{
  "reqId": "cG80AI4kVRgTozpeZp2k",
  "level": 4,
  "time": "2024-01-13T02:00:43+00:00",
  "remoteAddr": "174.0.44.106",
  "user": "admin",
  "app": "no app in context",
  "method": "GET",
  "url": "/apps/logreader/api/poll?lastReqId=3G6Tfu31oRNZt7Xv48fe",
  "message": "Could not boot metadata: Call to undefined method OC\\Server::getEventDispatcher()",
  "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
  "version": "28.0.1.1",
  "exception": {
    "Exception": "Error",
    "Message": "Call to undefined method OC\\Server::getEventDispatcher()",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/www/html/lib/private/AppFramework/Bootstrap/Coordinator.php",
        "line": 200,
        "function": "boot",
        "class": "OCA\\Metadata\\AppInfo\\Application",
        "type": "->",
        "args": [
          [
            "OC\\AppFramework\\Bootstrap\\BootContext"
          ]
        ]
      },
      {
        "file": "/var/www/html/lib/private/App/AppManager.php",
        "line": 434,
        "function": "bootApp",
        "class": "OC\\AppFramework\\Bootstrap\\Coordinator",
        "type": "->",
        "args": [
          "metadata"
        ]
      },
      {
        "file": "/var/www/html/lib/private/App/AppManager.php",
        "line": 213,
        "function": "loadApp",
        "class": "OC\\App\\AppManager",
        "type": "->",
        "args": [
          "metadata"
        ]
      },
      {
        "file": "/var/www/html/lib/private/legacy/OC_App.php",
        "line": 125,
        "function": "loadApps",
        "class": "OC\\App\\AppManager",
        "type": "->",
        "args": [
          []
        ]
      },
      {
        "file": "/var/www/html/lib/base.php",
        "line": 1049,
        "function": "loadApps",
        "class": "OC_App",
        "type": "::",
        "args": []
      },
      {
        "file": "/var/www/html/index.php",
        "line": 39,
        "function": "handleRequest",
        "class": "OC",
        "type": "::",
        "args": []
      }
    ],
    "File": "/var/www/html/custom_apps/metadata/lib/AppInfo/Application.php",
    "Line": 28,
    "message": "Could not boot metadata: Call to undefined method OC\\Server::getEventDispatcher()",
    "exception": [],
    "CustomMessage": "Could not boot metadata: Call to undefined method OC\\Server::getEventDispatcher()"
  },
  "id": "65a1eecb076e9"
}

Iā€™d say it is very clear which app is causing this

thank you so much