Always display Lua messages (to match tshark), do not send them to
qDebug as they will not be visible with the default log options.
Change-Id: I660a3877355891d45881b26735596ea6dc8a8b29
Fixes: v2.5.0rc0-2037-gc9b6887d84 ("wslua: Fix logger after g6a5e90f2")
Reviewed-on: https://code.wireshark.org/review/26599
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
lua_pop(L, 1); /* pop result */
}
+ g_string_append_c(str, '\n');
- wslua_logger(LOG_DOMAIN_LUA, log_level, "%s\n", str->str);
+ wslua_logger(LOG_DOMAIN_LUA, log_level, str->str, NULL);
g_string_free(str,TRUE);
return 0;
GLogLevelFlags,
const gchar *message,
gpointer) {
- qDebug() << message;
+ fputs(message, stderr);
}
void funnel_statistics_retap_packets(funnel_ops_id_t *ops_id) {