diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-11-11 12:57:21 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-11-11 12:57:21 +0000 |
commit | 34e27083a4f5e4c37ec5097e5f3a7d0c46cde23a (patch) | |
tree | 0d0dd8dc791c7c1b826735aea1653a8bfa094821 /src/lua/lua_logger.c | |
parent | d425994c8336f6c322eaea3657a0be8b6cbb7cf7 (diff) | |
download | rspamd-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.c | 4 |
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 { |