Add query string to API "call not implemented" log message

2022.09-rc
Hypolite Petovan 2019-05-19 17:57:53 -04:00
rodzic 862159c712
commit b5454547e9
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -361,7 +361,7 @@ function api_call(App $a)
} }
} }
Logger::warning(API_LOG_PREFIX . 'not implemented', ['module' => 'api', 'action' => 'call']); Logger::warning(API_LOG_PREFIX . 'not implemented', ['module' => 'api', 'action' => 'call', 'query' => $a->query_string]);
throw new NotImplementedException(); throw new NotImplementedException();
} catch (HTTPException $e) { } catch (HTTPException $e) {
header("HTTP/1.1 {$e->getCode()} {$e->httpdesc}"); header("HTTP/1.1 {$e->getCode()} {$e->httpdesc}");