1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-02-23 06:31:58 +00:00

Merge pull request #1318 from enkore/issue/1314

xattr: don't log before logging is set up
This commit is contained in:
TW 2016-07-12 14:09:06 +02:00 committed by GitHub
commit e28c2d4c36

View file

@ -63,12 +63,10 @@ def get_all(path, follow_symlinks=True):
libc_name = LD_PRELOAD
XATTR_FAKEROOT = True
try:
libc = CDLL(libc_name, use_errno=True)
except OSError as e:
msg = "Can't find C library [%s]. Try installing ldconfig, gcc/cc or objdump." % e
logger.error(msg)
raise Exception(msg)