diff options
author | Marcel Hollerbach <mail@marcel-hollerbach.de> | 2019-09-23 14:11:51 +0200 |
---|---|---|
committer | Mike Blumenkrantz <zmike@samsung.com> | 2019-10-04 09:26:55 -0400 |
commit | 2917bf7d7693af4f9ab6216264a7b2dcd1bc8f3c (patch) | |
tree | 37116462322ddbda1718d487db8153898c80339f | |
parent | cddac9a4de1b55c432074c4c792551ecb6dd8142 (diff) | |
download | efl-2917bf7d7693af4f9ab6216264a7b2dcd1bc8f3c.tar.gz |
eina_log: ensure that we do not spam journald with our intree binaries
EFL_RUN_IN_TREE is set for all binaries that are executed during build
time, and test suites. With this commit we are ensuring that we are not
sending messages during that time to journald, otherwise we would waste
a lot of time + we would create a lot of unneccessary log messages.
(eina test suite runtime with journald hook: 11.21s without journald
hook: 0.57s)
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Differential Revision: https://phab.enlightenment.org/D10076
-rw-r--r-- | src/lib/eina/eina_log.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eina/eina_log.c b/src/lib/eina/eina_log.c index 5700236eb3..2519b551f8 100644 --- a/src/lib/eina/eina_log.c +++ b/src/lib/eina/eina_log.c @@ -1538,7 +1538,7 @@ eina_log_init(void) #endif #ifdef HAVE_SYSTEMD - if (getenv("NOTIFY_SOCKET")) + if (getenv("NOTIFY_SOCKET") && !getenv("EFL_RUN_IN_TREE")) _print_cb = eina_log_print_cb_journald; #endif |