Skip to content

Commit

Permalink
chore(log): log all files (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
philloooo authored and zflamig committed Jun 11, 2018
1 parent c05bca3 commit aa26c99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fence/sync/sync_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,12 @@ def _parse_csv(self, file_dict, sess, encrypted=True):
user_projects = dict()
user_info = dict()
for filepath, privileges in file_dict.iteritems():
self.logger.info('Reading file {}'.format(filepath))
if os.stat(filepath).st_size == 0:
continue
if not self._match_pattern(filepath, encrypted=encrypted):
continue

self.logger.info('Reading file {}'.format(filepath))
with self._read_file(filepath, encrypted=encrypted) as f:
csv = DictReader(f, quotechar='"',
skipinitialspace=True)
Expand Down

0 comments on commit aa26c99

Please sign in to comment.