Bit more verbose
authorEnrico Zini <enrico@enricozini.org>
Fri, 18 Dec 2009 00:48:07 +0000 (00:48 +0000)
committerEnrico Zini <enrico@enricozini.org>
Fri, 18 Dec 2009 00:48:07 +0000 (00:48 +0000)
src/power.vala

index a2a19fc04fec68292529ee4dd22f410bc6fbed28..55837089e5995c34ef5a2147897709b3f26d16c8 100644 (file)
@@ -57,6 +57,7 @@ class Power : Service
         uint poll_time;
         if (uevent.uevent != null)
         {
+            zavai.log.info("We have uevent: poll rarely");
             uevent.uevent.event += on_uevent;
             uevent.uevent.request("zavai.power");
             // If we can get plug/unplug notifications, it's ok to just poll
@@ -68,6 +69,7 @@ class Power : Service
                 zavai.log.warning("No battery device found that I know how to read: try building with devkit-power");
                 poll_time = 0;
             } else {
+                zavai.log.info("Polling battery device only");
                 // Else poll every 30 seconds to be somehow reactive to plug/unplug
                 // events
                 poll_time = 30 * 1000;