refactor: remove log_debug in main
This commit is contained in:
@@ -6,8 +6,8 @@
|
|||||||
|
|
||||||
/* Configuration for static file serving */
|
/* Configuration for static file serving */
|
||||||
typedef struct cws_handler_config {
|
typedef struct cws_handler_config {
|
||||||
const char *root_dir; /*< "www" */
|
const char *root_dir;
|
||||||
const char *index_file; /*< "index.html" */
|
const char *index_file;
|
||||||
} cws_handler_config_s;
|
} cws_handler_config_s;
|
||||||
|
|
||||||
/* Static file handler */
|
/* Static file handler */
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ void cws_signal_handler(int signo) {
|
|||||||
|
|
||||||
int main(void) {
|
int main(void) {
|
||||||
cws_log_init();
|
cws_log_init();
|
||||||
cws_log_debug("Starting cws");
|
|
||||||
|
|
||||||
if (signal(SIGINT, cws_signal_handler) == SIG_ERR) {
|
if (signal(SIGINT, cws_signal_handler) == SIG_ERR) {
|
||||||
cws_log_error("signal()");
|
cws_log_error("signal()");
|
||||||
|
|||||||
Reference in New Issue
Block a user