1
0

Removed some logging

git-svn-id: http://mc-server.googlecode.com/svn/trunk@943 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
faketruth 2012-10-10 19:25:16 +00:00
parent 7b42204b24
commit a038425736

View File

@ -88,11 +88,11 @@ bool cLuaCommandBinder::HandleCommand( const std::string & a_Command, cPlayer* a
lua_rawset(func.LuaState, -3); lua_rawset(func.LuaState, -3);
lua_pop(func.LuaState, 1); lua_pop(func.LuaState, 1);
LOGINFO("1. Stack size: %i", lua_gettop(func.LuaState) ); LOGD("1. Stack size: %i", lua_gettop(func.LuaState) );
lua_rawgeti( func.LuaState, LUA_REGISTRYINDEX, func.Reference); // same as lua_getref() lua_rawgeti( func.LuaState, LUA_REGISTRYINDEX, func.Reference); // same as lua_getref()
// Push the split // Push the split
LOGINFO("2. Stack size: %i", lua_gettop(func.LuaState) ); LOGD("2. Stack size: %i", lua_gettop(func.LuaState) );
lua_createtable(func.LuaState, Split.size(), 0); lua_createtable(func.LuaState, Split.size(), 0);
int newTable = lua_gettop(func.LuaState); int newTable = lua_gettop(func.LuaState);
int index = 1; int index = 1;
@ -103,19 +103,19 @@ bool cLuaCommandBinder::HandleCommand( const std::string & a_Command, cPlayer* a
++iter; ++iter;
++index; ++index;
} }
LOGINFO("3. Stack size: %i", lua_gettop(func.LuaState) ); LOGD("3. Stack size: %i", lua_gettop(func.LuaState) );
// Push player // Push player
tolua_pushusertype( func.LuaState, a_Player, "cPlayer" ); tolua_pushusertype( func.LuaState, a_Player, "cPlayer" );
LOGINFO("Calling bound function! :D"); LOGD("Calling bound function! :D");
int s = lua_pcall(func.LuaState, 2, 1, 0); int s = lua_pcall(func.LuaState, 2, 1, 0);
if( report_errors( func.LuaState, s ) ) if( report_errors( func.LuaState, s ) )
{ {
LOGINFO("error. Stack size: %i", lua_gettop(func.LuaState) ); LOGERROR("error. Stack size: %i", lua_gettop(func.LuaState) );
return false; return false;
} }
bool RetVal = (tolua_toboolean(func.LuaState, -1, 0) > 0); bool RetVal = (tolua_toboolean(func.LuaState, -1, 0) > 0);
lua_pop(func.LuaState, 1); // Pop return value lua_pop(func.LuaState, 1); // Pop return value
LOGINFO("ok. Stack size: %i", lua_gettop(func.LuaState) ); LOGD("ok. Stack size: %i", lua_gettop(func.LuaState) );
return RetVal; return RetVal;
} }
return false; return false;