raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=f54a2eb5703381f9e80604cdca84f91b72ae0090

commit f54a2eb5703381f9e80604cdca84f91b72ae0090
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Tue Apr 12 12:51:48 2016 +0900

    ecore system upower - silence if service doesnt exist
    
    this silences come complaint warnings that should not be noisy - eg if
    upower dbus service doesn't exist.
---
 src/modules/ecore/system/upower/ecore_system_upower.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/modules/ecore/system/upower/ecore_system_upower.c 
b/src/modules/ecore/system/upower/ecore_system_upower.c
index 00ed43a..e07694c 100644
--- a/src/modules/ecore/system/upower/ecore_system_upower.c
+++ b/src/modules/ecore/system/upower/ecore_system_upower.c
@@ -96,7 +96,9 @@ _warning_level_get_cb(void *data EINA_UNUSED,
 
    if (eldbus_message_error_get(msg, &errname, &errmsg))
      {
-        ERR("Message error %s - %s", errname, errmsg);
+// don't print errors because this results in complaints about upower not
+// existing and it's OK if it doesn't exist. just no feature enabled then
+//        ERR("Message error %s - %s", errname, errmsg);
         return;
      }
    if (!eldbus_message_arguments_get(msg, "v", &variant))

-- 


Reply via email to