billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=ea91a6c82569890b331da85c0922dddd9b4e7deb

commit ea91a6c82569890b331da85c0922dddd9b4e7deb
Author: Boris Faure <bill...@gmail.com>
Date:   Sat Sep 9 00:13:31 2017 +0200

    makes more sense to log to syslog when not fuzzing
---
 src/bin/main.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/src/bin/main.c b/src/bin/main.c
index 74f2e4c..790b768 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -431,6 +431,18 @@ _translate_options(void)
 #endif
 
 #ifdef ENABLE_FUZZING
+static void
+_log_void(const Eina_Log_Domain *_d EINA_UNUSED,
+          Eina_Log_Level level EINA_UNUSED,
+          const char *_file EINA_UNUSED,
+          const char *_fnc EINA_UNUSED,
+          int _line EINA_UNUSED,
+          const char *fmt EINA_UNUSED,
+          void *_data EINA_UNUSED,
+          va_list args EINA_UNUSED)
+{
+}
+#else
 #include <syslog.h>
 static void
 _log_to_syslog(const Eina_Log_Domain *_d EINA_UNUSED,
@@ -547,6 +559,8 @@ elm_main(int argc, char **argv)
    terminology_starting_up = EINA_TRUE;
 
 #ifdef ENABLE_FUZZING
+   eina_log_print_cb_set(_log_void, NULL);
+#else
    eina_log_print_cb_set(_log_to_syslog, NULL);
 #endif
 

-- 


Reply via email to