Merge pull request #8625 from appwrite/fix-router-logging

Fix: router function execution logging
This commit is contained in:
Christy Jacob 2024-09-05 21:03:07 +04:00 committed by GitHub
commit 3cef3a76ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -97,6 +97,9 @@ function router(App $utopia, Database $dbForConsole, callable $getProjectDB, Swo
$type = $route->getAttribute('resourceType');
if ($type === 'function') {
$utopia->getRoute()?->label('sdk.namespace', 'functions');
$utopia->getRoute()?->label('sdk.method', 'createExecution');
if (System::getEnv('_APP_OPTIONS_FUNCTIONS_FORCE_HTTPS', 'disabled') === 'enabled') { // Force HTTPS
if ($request->getProtocol() !== 'https') {
if ($request->getMethod() !== Request::METHOD_GET) {