summaryrefslogtreecommitdiffstats
path: root/glances/plugins/glances_batpercent.py
diff options
context:
space:
mode:
Diffstat (limited to 'glances/plugins/glances_batpercent.py')
-rw-r--r--glances/plugins/glances_batpercent.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/glances/plugins/glances_batpercent.py b/glances/plugins/glances_batpercent.py
index 1778ff95..0d33a30c 100644
--- a/glances/plugins/glances_batpercent.py
+++ b/glances/plugins/glances_batpercent.py
@@ -19,8 +19,7 @@
"""Battery plugin."""
-# Import Glances libs
-from glances.core.glances_logging import logger
+from glances.logger import logger
from glances.plugins.glances_plugin import GlancesPlugin
# Batinfo library (optional; Linux-only)
@@ -39,7 +38,7 @@ class Plugin(GlancesPlugin):
def __init__(self, args=None):
"""Init the plugin."""
- GlancesPlugin.__init__(self, args=args)
+ super(Plugin, self).__init__(args=args)
# Init the sensor class
self.glancesgrabbat = GlancesGrabBat()