equal
deleted
inserted
replaced
284 log_info("initializing the console"); |
284 log_info("initializing the console"); |
285 |
285 |
286 // init the console |
286 // init the console |
287 if (console_init(&console, nexus->ev_base, &config, NULL, NULL, err)) |
287 if (console_init(&console, nexus->ev_base, &config, NULL, NULL, err)) |
288 return ERROR_CODE(err); |
288 return ERROR_CODE(err); |
|
289 |
|
290 // set it as the log output handler |
|
291 console_set_log_output(console); |
289 |
292 |
290 // create the lua console on top of that |
293 // create the lua console on top of that |
291 if (lua_console_create(&nexus->lua_console, console, nexus->lua, err)) |
294 if (lua_console_create(&nexus->lua_console, console, nexus->lua, err)) |
292 goto error; |
295 goto error; |
293 |
296 |