diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2019-11-25 01:54:08 -0500 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2020-07-08 19:54:28 -0400 |
commit | 010c28949c17f3a846d78e4938ae53f165b6b3f1 (patch) | |
tree | 19423195330404ccb34456b87fa4e4f93d0f9708 /src/mod_evhost.c | |
parent | 644725127f029b9e8b5a4b5c0d64867243f788c5 (diff) | |
download | lighttpd-git-010c28949c17f3a846d78e4938ae53f165b6b3f1.tar.gz |
[multiple] prefer (connection *) to (srv *)
convert all log_error_write() to log_error() and pass (log_error_st *)
use con->errh in preference to srv->errh (even though currently same)
avoid passing (server *) when previously used only for logging (errh)
Diffstat (limited to 'src/mod_evhost.c')
-rw-r--r-- | src/mod_evhost.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mod_evhost.c b/src/mod_evhost.c index 3bc143b4..092bab0a 100644 --- a/src/mod_evhost.c +++ b/src/mod_evhost.c @@ -7,7 +7,6 @@ #include <stdlib.h> #include <string.h> -#include <errno.h> /** * @@ -340,9 +339,9 @@ static handler_t mod_evhost_uri_handler(server *srv, connection *con, void *p_d) mod_evhost_build_doc_root_path(b, &p->split_vals, con->uri.authority, p->conf.path_pieces); if (HANDLER_ERROR == stat_cache_get_entry(srv, con, b, &sce)) { - log_error_write(srv, __FILE__, __LINE__, "sb", strerror(errno), b); + log_perror(con->conf.errh, __FILE__, __LINE__, "%s", b->ptr); } else if(!S_ISDIR(sce->st.st_mode)) { - log_error_write(srv, __FILE__, __LINE__, "sb", "not a directory:", b); + log_error(con->conf.errh, __FILE__, __LINE__, "not a directory: %s", b->ptr); } else { buffer_copy_buffer(con->physical.doc_root, b); } |