[Freeswitch-svn] [commit] r8277 - freeswitch/trunk/src/mod/languages/mod_lua
Freeswitch SVN
anthm at freeswitch.org
Tue May 6 16:43:37 EDT 2008
Author: anthm
Date: Tue May 6 16:43:36 2008
New Revision: 8277
Modified:
freeswitch/trunk/src/mod/languages/mod_lua/mod_lua.c
Log:
update
Modified: freeswitch/trunk/src/mod/languages/mod_lua/mod_lua.c
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_lua/mod_lua.c (original)
+++ freeswitch/trunk/src/mod/languages/mod_lua/mod_lua.c Tue May 6 16:43:36 2008
@@ -165,7 +165,9 @@
if (error) {
const char *err = lua_tostring(L, -1);
- switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "%s\n", switch_str_nil(err));
+ if (!switch_strlen_zero(err)) {
+ switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "%s\n", err);
+ }
lua_pop(L, 1); /* pop error message from the stack */
}
}
More information about the Freeswitch-svn
mailing list