summaryrefslogtreecommitdiff
path: root/pywal/export.py
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2018-04-01 12:28:32 +1000
committerDylan Araps <dylan.araps@gmail.com>2018-04-01 12:28:32 +1000
commitcf6ac7944d08e64a1392a9ee4ec46a3624732418 (patch)
tree54784210f3a51955e4a25face379117684f5067c /pywal/export.py
parentd5f39135b2d054af23c0af8594ee772b2a544669 (diff)
general: Added logging.
Diffstat (limited to 'pywal/export.py')
-rw-r--r--pywal/export.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/pywal/export.py b/pywal/export.py
index 120150d..ed7a846 100644
--- a/pywal/export.py
+++ b/pywal/export.py
@@ -1,6 +1,7 @@
"""
Export colors in various formats.
"""
+import logging
import os
from .settings import CACHE_DIR, MODULE_DIR, CONF_DIR
@@ -65,8 +66,8 @@ def every(colors, output_dir=CACHE_DIR):
if file.name != '.DS_Store':
template(colors, file.path, join(output_dir, file.name))
- print("export: Exported all files.")
- print("export: Exported all user files.")
+ logging.info("Exported all files.")
+ logging.info("Exported all user files.")
def color(colors, export_type, output_file=None):
@@ -79,6 +80,6 @@ def color(colors, export_type, output_file=None):
if os.path.isfile(template_file):
template(all_colors, template_file, output_file)
- print("export: Exported %s." % export_type)
+ logging.info("Exported %s.", export_type)
else:
- print("warning: template '%s' doesn't exist." % export_type)
+ logging.warning("Template '%s' doesn't exist.", export_type)