eina_log: do not fallback to INFO when we run with systemd support
authorMarcel Hollerbach <mail@marcel-hollerbach.de>
Mon, 23 Sep 2019 07:42:22 +0000 (09:42 +0200)
committerJongmin Lee <jm105.lee@samsung.com>
Mon, 23 Sep 2019 21:32:19 +0000 (06:32 +0900)
INFO is a way too verbose log domain, this lead to the fact that we
spammed journald before the first frame with ~200-300 messages
(depending on the setup) which is quite a lot. Additionally, this also
lead to the fact that we often TIMEOUT our own tests.

Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org>
Differential Revision: https://phab.enlightenment.org/D10075

src/lib/eina/eina_log.c

index 35ce0c2..b52f504 100644 (file)
@@ -1594,10 +1594,6 @@ eina_log_init(void)
    // Global log level
    if ((level = getenv(EINA_LOG_ENV_LEVEL)))
       _log_level = atoi(level);
-#ifdef HAVE_SYSTEMD
-   else if (getenv("NOTIFY_SOCKET") && (_print_cb == eina_log_print_cb_journald))
-      _log_level = EINA_LOG_LEVEL_INFO;
-#endif
 
    // Register UNKNOWN domain, the default logger
    EINA_LOG_DOMAIN_GLOBAL = eina_log_domain_register("", NULL);