diff options
author | Kali Kaneko <kali@leap.se> | 2013-09-17 18:17:42 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2013-09-18 11:23:33 -0400 |
commit | f416fa8c80cab57aa26bc5c55bb26a9f1e62f248 (patch) | |
tree | 1b4d8af14e0a1a7e1f463513c84753daf5db1b36 | |
parent | bdfab552ee6352ae1c4407dd3d46640d77f0389b (diff) |
remove redundant logging
-rw-r--r-- | changes/feature_remove-unneeded-logging | 1 | ||||
-rw-r--r-- | client/src/leap/soledad/client/__init__.py | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/changes/feature_remove-unneeded-logging b/changes/feature_remove-unneeded-logging new file mode 100644 index 00000000..3dfc562b --- /dev/null +++ b/changes/feature_remove-unneeded-logging @@ -0,0 +1 @@ + o Remove redundant logging when creating data dirs. diff --git a/client/src/leap/soledad/client/__init__.py b/client/src/leap/soledad/client/__init__.py index 0976d346..4c6a41fc 100644 --- a/client/src/leap/soledad/client/__init__.py +++ b/client/src/leap/soledad/client/__init__.py @@ -345,8 +345,9 @@ class Soledad(object): lambda x: os.path.dirname(x), [self._local_db_path, self._secrets_path]) for path in paths: - logger.info('Creating directory: %s.' % path) try: + if not os.path.isdir(path): + logger.info('Creating directory: %s.' % path) os.makedirs(path) except OSError as exc: if exc.errno == errno.EEXIST and os.path.isdir(path): |