summaryrefslogtreecommitdiff
path: root/pywal/export.py
diff options
context:
space:
mode:
authorDylan Araps <dylanaraps@users.noreply.github.com>2018-04-01 13:11:07 +1000
committerGitHub <noreply@github.com>2018-04-01 13:11:07 +1000
commit50de3cf270592d5f047b1550b0bbf35d709d96a8 (patch)
treefdc9cd19b7746a29803e0fb9b28d294da793152b /pywal/export.py
parentd5f39135b2d054af23c0af8594ee772b2a544669 (diff)
parenteadcb3bfd365aea5a0397262e3b41e5ed78848dd (diff)
Merge pull request #216 from dylanaraps/logging
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)