1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-30 21:04:39 +02:00
openwrt-packages/utils/ttyd/patches/100-log-to-syslog.patch
Rosen Penev cafde49d24
ttyd: update to 1.6.2
Remove upstream patch. Refreshed other one.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-12-22 19:25:13 -08:00

21 lines
459 B
Diff

--- a/src/server.c
+++ b/src/server.c
@@ -10,6 +10,7 @@
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
+#include <syslog.h>
#include "utils.h"
@@ -478,7 +479,8 @@ int main(int argc, char **argv) {
return -1;
}
- lws_set_log_level(debug_level, NULL);
+ openlog("ttyd", LOG_NDELAY | LOG_PID, LOG_DAEMON);
+ lws_set_log_level(debug_level, lwsl_emit_syslog);
#if LWS_LIBRARY_VERSION_MAJOR >= 2
char server_hdr[128] = "";