mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
KCC: use logger.critical rather than print >> sys.stderr
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
db48fb252f
commit
c45007953b
@ -21,7 +21,6 @@
|
||||
|
||||
import random
|
||||
import uuid
|
||||
import sys
|
||||
|
||||
import itertools
|
||||
from samba import unix2nttime, nttime2unix
|
||||
@ -2604,7 +2603,7 @@ class KCC(object):
|
||||
self.samdb = ldif_import_export.ldif_to_samdb(dburl, lp, ldif_file,
|
||||
forced_local_dsa)
|
||||
except ldif_import_export.LdifError, e:
|
||||
print >> sys.stderr, e
|
||||
logger.critical(e)
|
||||
return 1
|
||||
return 0
|
||||
|
||||
@ -2629,6 +2628,6 @@ class KCC(object):
|
||||
ldif_import_export.samdb_to_ldif_file(self.samdb, dburl, lp, creds,
|
||||
ldif_file)
|
||||
except ldif_import_export.LdifError, e:
|
||||
print >> sys.stderr, e
|
||||
logger.critical(e)
|
||||
return 1
|
||||
return 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user