diff options
author | Peter Wu <peter@lekensteyn.nl> | 2018-03-23 17:04:50 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2018-03-24 07:17:03 +0000 |
commit | 4847076c7f7bc75e8d5b38724a1a89ddb64d5c3e (patch) | |
tree | aaf688f4ae9659836dfae4fbf047edc497803917 /epan/wslua/wslua_util.c | |
parent | 8f0f691312d93b12511c5cebf3e414b15e7661a4 (diff) |
wslua: Fix logging
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>
Diffstat (limited to 'epan/wslua/wslua_util.c')
-rw-r--r-- | epan/wslua/wslua_util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/wslua/wslua_util.c b/epan/wslua/wslua_util.c index a16613a61e..ec3ee45d9a 100644 --- a/epan/wslua/wslua_util.c +++ b/epan/wslua/wslua_util.c @@ -149,8 +149,9 @@ static int wslua_log(lua_State* L, GLogLevelFlags log_level) { 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; |