com php-src: Include the request method in CLI server logs: sapi/cli/php_cli_server.c
| From: | Kalle Sommer Nielsen | Date: | Thu, 02 May 2019 20:32:22 +0000 |
| Subject: | com php-src: Include the request method in CLI server logs: sapi/cli/php_cli_server.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-106025@lists.php.net to get a copy of this message | ||
Commit: 6e3438bc62ad453259e8372dae3975cb80780546
Author: Simon Welsh <simon@welsh-au.com> Thu, 2 May 2019 19:58:24 +1000
Committer: Kalle Sommer Nielsen <kalle@php.net> Thu, 2 May 2019 23:32:22 +0300
Parents: 826e4aca59c778cb8ea8926e3ea8dbd6c81c9253
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=6e3438bc62ad453259e8372dae3975cb80780546
Log:
Include the request method in CLI server logs
Changed paths:
M sapi/cli/php_cli_server.c
Diff:
diff --git a/sapi/cli/php_cli_server.c b/sapi/cli/php_cli_server.c
index 6889278..be64ff9 100644
--- a/sapi/cli/php_cli_server.c
+++ b/sapi/cli/php_cli_server.c
@@ -1120,7 +1120,7 @@ static void php_cli_server_log_response(php_cli_server_client *client, int
statu
#endif
/* basic */
- spprintf(&basic_buf, 0, "%s [%d]: %s", client->addr_str, status,
client->request.request_uri);
+ spprintf(&basic_buf, 0, "%s [%d]: %s %s", client->addr_str, status,
SG(request_info).request_method, client->request.request_uri);
if (!basic_buf) {
return;
}