src/nexus.c
changeset 137 c607c357c486
parent 134 978041c1c04d
child 139 55b9dcc2b73a
equal deleted inserted replaced
136:81dbeb5bc38e 137:c607c357c486
   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