diff options
author | Christian Pointner <equinox@anylike.org> | 2009-12-25 10:34:02 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anylike.org> | 2009-12-25 10:34:02 +0000 |
commit | a8b5e084a7b21f110e45894c6c28b8e817da163f (patch) | |
tree | 4900811446b0138faa596d0f099ec7a42bd38a47 | |
parent | added log.add_target to log library (diff) |
removed lua: header from log messages from lua
-rw-r--r-- | src/anylike.c | 5 | ||||
-rw-r--r-- | src/l_log.c | 2 |
2 files changed, 2 insertions, 5 deletions
diff --git a/src/anylike.c b/src/anylike.c index 5ca18cb..0cd0138 100644 --- a/src/anylike.c +++ b/src/anylike.c @@ -38,14 +38,11 @@ int main_loop(options_t* opt) lua_State *L; L = lua_open(); luaopen_base(L); + luaopen_string(L); luaopen_log(L); - log_printf(NOTICE, "will now start main_loop.lua"); - lua_dofile(L, "main_loop.lua"); - log_printf(NOTICE, "script.lua just returned"); - lua_close(L); return 0; diff --git a/src/l_log.c b/src/l_log.c index e61c66c..e7caffe 100644 --- a/src/l_log.c +++ b/src/l_log.c @@ -70,7 +70,7 @@ static int l_log_print(lua_State *L) lua_error(L); } - log_printf(prio, "lua: %s", luaL_checklstring(L, 2, NULL)); + log_printf(prio, "%s", luaL_checklstring(L, 2, NULL)); return 0; } |