]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Improve lua logging for long filenames
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 11 Nov 2017 12:57:21 +0000 (12:57 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 11 Nov 2017 12:57:21 +0000 (12:57 +0000)
src/lua/lua_logger.c

index 8c5341096edc4b1619608350f0db754c5eaaa261..25dc07712f190f582d15030700685fc5429d5206 100644 (file)
@@ -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 {