aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/logger.h
diff options
context:
space:
mode:
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