mirror of https://github.com/omar-polo/gmid.git
still respect `log' when in debug mode
This commit is contained in:
parent
e5f060f0d2
commit
e075021085
6
gmid.c
6
gmid.c
|
@ -119,6 +119,9 @@ log_request(struct client *c, int code, const char *meta)
|
|||
if (ec == -1)
|
||||
fatal("asprintf");
|
||||
|
||||
if (debug)
|
||||
fprintf(stderr, "%s\n", fmted);
|
||||
|
||||
proc_compose(conf->ps, PROC_LOGGER, IMSG_LOG_REQUEST,
|
||||
fmted, ec + 1);
|
||||
|
||||
|
@ -325,9 +328,6 @@ main_send_logfd(struct conf *conf)
|
|||
char path[PATH_MAX];
|
||||
int r, fd = -1;
|
||||
|
||||
if (debug)
|
||||
return 0;
|
||||
|
||||
if (conf->log_access) {
|
||||
r = snprintf(path, sizeof(path), "%s%s%s", conf->chroot,
|
||||
*conf->chroot == '\0' ? "" : "/", conf->log_access);
|
||||
|
|
Loading…
Reference in New Issue