aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/logger.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-12-25 13:47:47 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-12-25 14:02:37 +0000
commit2d580ae44f9646513748a234f1683e412d750f9b (patch)
treede1ce5836dce58396bb9c6da53ea84a8cc94efbe /src/libserver/logger.h
parent6cb0a8ec17abd128b22181b7489c7facfb4d0df4 (diff)
downloadrspamd-2d580ae44f9646513748a234f1683e412d750f9b.tar.gz
rspamd-2d580ae44f9646513748a234f1683e412d750f9b.zip
[Minor] Escape log lines in logger
Diffstat (limited to 'src/libserver/logger.h')
-rw-r--r--src/libserver/logger.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libserver/logger.h b/src/libserver/logger.h
index c5cc5beed..ca910c261 100644
--- a/src/libserver/logger.h
+++ b/src/libserver/logger.h
@@ -56,7 +56,12 @@ struct rspamd_logger_funcs {
gpointer specific;
};
+#if defined(__x86_64) || defined(__x86_64__) || defined(__amd64) || defined(_M_X64)
#define RSPAMD_LOGBUF_SIZE 8192
+#else
+/* Use a smaller buffer */
+#define RSPAMD_LOGBUF_SIZE 2048
+#endif
/**
* Opens a new (initial) logger with console type