aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_logger.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-11-11 12:57:21 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-11-11 12:57:21 +0000
commit34e27083a4f5e4c37ec5097e5f3a7d0c46cde23a (patch)
tree0d0dd8dc791c7c1b826735aea1653a8bfa094821 /src/lua/lua_logger.c
parentd425994c8336f6c322eaea3657a0be8b6cbb7cf7 (diff)
downloadrspamd-34e27083a4f5e4c37ec5097e5f3a7d0c46cde23a.tar.gz
rspamd-34e27083a4f5e4c37ec5097e5f3a7d0c46cde23a.zip
[Minor] Improve lua logging for long filenames
Diffstat (limited to 'src/lua/lua_logger.c')
-rw-r--r--src/lua/lua_logger.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_logger.c b/src/lua/lua_logger.c
index 8c5341096..25dc07712 100644
--- a/src/lua/lua_logger.c
+++ b/src/lua/lua_logger.c
@@ -158,8 +158,8 @@ lua_common_log_line (GLogLevelFlags level, lua_State *L,
p++;
}
- if (strlen (p) > 20) {
- rspamd_snprintf (func_buf, sizeof (func_buf), "%10s...]:%d", p,
+ if (strlen (p) > 30) {
+ rspamd_snprintf (func_buf, sizeof (func_buf), "%27s...:%d", p,
d.currentline);
}
else {