summaryrefslogtreecommitdiff
path: root/src/tipideed/cgi.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-09-23 02:38:54 +0000
committerLaurent Bercot <ska@appnovation.com>2023-09-23 02:38:54 +0000
commit68a35fb8e58f86995929839330b7aee0a3a92a87 (patch)
treebebf8cf5b90c3104a211e2f326cbf0f3799a47d4 /src/tipideed/cgi.c
parent139b577cbeccd495038da51a8a3ddc8eb3397a4d (diff)
downloadtipidee-68a35fb8e58f86995929839330b7aee0a3a92a87.tar.xz
Better logging
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/tipideed/cgi.c')
-rw-r--r--src/tipideed/cgi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tipideed/cgi.c b/src/tipideed/cgi.c
index 1ce0b1d..c2c62a1 100644
--- a/src/tipideed/cgi.c
+++ b/src/tipideed/cgi.c
@@ -102,7 +102,6 @@ static inline int do_nph (tipidee_rql const *rql, char const *const *argv, char
static inline int do_nph (tipidee_rql const *rql, char const *const *argv, char const *const *envp, char const *body, size_t bodylen)
{
int p[2] ;
- log_nph(argv, envp) ;
if (pipe(p) == -1) die500sys(rql, 111, "pipe") ;
if (bodylen)
{
@@ -134,6 +133,7 @@ static inline int do_nph (tipidee_rql const *rql, char const *const *argv, char
}
close(p[1]) ;
if (fd_move(0, p[0]) == -1) die500sys(rql, 111, "fd_move") ;
+ log_nph(argv, envp) ;
exec_e(argv, envp) ;
die500sys(rql, errno == ENOENT ? 127 : 126, "exec nph ", argv[0]) ;
}
@@ -365,7 +365,7 @@ static inline int process_cgi_output (tipidee_rql *rql, tipidee_headers const *h
}
if (!buffer_timed_flush_g(buffer_1, &deadline))
strerr_diefu1sys(111, "write to stdout") ;
- if (g.verbosity >= 4)
+ if (g.verbosity >= 2)
{
char fmt[UINT_FMT] ;
fmt[uint_fmt(fmt, status)] = 0 ;