diff options
author | Eugeni Dodonov <eugeni@mandriva.org> | 2010-01-14 14:12:04 +0000 |
---|---|---|
committer | Eugeni Dodonov <eugeni@mandriva.org> | 2010-01-14 14:12:04 +0000 |
commit | 9f2fa5b895d55b3cfa46e18d638f4b0241d98dc9 (patch) | |
tree | ec6fb94d7d757bed255997e5c9a3c36f2027aee7 | |
parent | fa74169fdca08c51ba987d646fbf7cb69316851d (diff) | |
download | msec-9f2fa5b895d55b3cfa46e18d638f4b0241d98dc9.tar msec-9f2fa5b895d55b3cfa46e18d638f4b0241d98dc9.tar.gz msec-9f2fa5b895d55b3cfa46e18d638f4b0241d98dc9.tar.bz2 msec-9f2fa5b895d55b3cfa46e18d638f4b0241d98dc9.tar.xz msec-9f2fa5b895d55b3cfa46e18d638f4b0241d98dc9.zip |
Properly use error logger (#56180)
-rwxr-xr-x | src/msec/libmsec.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/msec/libmsec.py b/src/msec/libmsec.py index 8dba9cf..f4e2b01 100755 --- a/src/msec/libmsec.py +++ b/src/msec/libmsec.py @@ -783,7 +783,7 @@ class PERMS: try: self.USER[name] = pwd.getpwnam(name)[2] except KeyError: - error(_('user name %s not found') % name) + self.log.error(_('user name %s not found') % name) self.USER[name] = -1 return self.USER[name] @@ -795,7 +795,7 @@ class PERMS: try: self.USERID[id] = pwd.getpwuid(id)[0] except KeyError: - error(_('user name not found for id %d') % id) + self.log.error(_('user name not found for id %d') % id) self.USERID[id] = str(id) return self.USERID[id] @@ -807,7 +807,7 @@ class PERMS: try: self.GROUP[name] = grp.getgrnam(name)[2] except KeyError: - error(_('group name %s not found') % name) + self.log.error(_('group name %s not found') % name) self.GROUP[name] = -1 return self.GROUP[name] @@ -819,7 +819,7 @@ class PERMS: try: self.GROUPID[id] = grp.getgrgid(id)[0] except KeyError: - error(_('group name not found for id %d') % id) + self.log.error(_('group name not found for id %d') % id) self.GROUPID[id] = str(id) return self.GROUPID[id] |