eina_log: do not fallback to INFO when we run with systemd support

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
This commit is contained in:
Marcel Hollerbach 2019-09-23 09:42:22 +02:00 committed by Stefan Schmidt
parent a819a954bf
commit 5ff0c3cc15
1 changed files with 0 additions and 4 deletions

View File

@ -1562,10 +1562,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);