Remove debug code

This commit is contained in:
2025-10-18 18:14:32 +02:00
parent bb4c837cfb
commit 06294c78ca
+5 -5
View File
@@ -248,8 +248,6 @@ static void endpoint_index(CWEB *cweb, CWEB_Request *req)
{ {
(void) cweb; (void) cweb;
__builtin_trap(); // TODO: remove me
cweb_respond_template(req, 200, CWEB_STR("demo/pages/index.wl")); cweb_respond_template(req, 200, CWEB_STR("demo/pages/index.wl"));
} }
@@ -337,9 +335,11 @@ int main(void)
if (cweb_global_init() < 0) if (cweb_global_init() < 0)
return -1; return -1;
char buf[128]; {
int len = snprintf(buf, sizeof(buf), "crash_%d.txt", getpid()); char buf[128];
cweb_enable_crash_logger((CWEB_String) { buf, len }); int len = snprintf(buf, sizeof(buf), "crash_%d.txt", getpid());
cweb_enable_crash_logger((CWEB_String) { buf, len });
}
uint16_t secure_port = 0; uint16_t secure_port = 0;
CWEB_String cert_key; CWEB_String cert_key;