summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nxt_unit.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nxt_unit.c b/src/nxt_unit.c
index e1b1897a..965cfa42 100644
--- a/src/nxt_unit.c
+++ b/src/nxt_unit.c
@@ -8,6 +8,7 @@
#include "nxt_socket_msg.h"
#include "nxt_port_queue.h"
#include "nxt_app_queue.h"
+#include "nxt_application.h"
#include "nxt_unit.h"
#include "nxt_unit_request.h"
@@ -1094,6 +1095,11 @@ nxt_unit_process_msg(nxt_unit_ctx_t *ctx, nxt_unit_read_buf_t *rbuf,
goto done;
}
+ if (nxt_app_set_logs() == NXT_ERROR) {
+ rc = NXT_UNIT_ERROR;
+ goto done;
+ }
+
rc = NXT_UNIT_OK;
break;