mirror of
https://github.com/samba-team/samba.git
synced 2025-08-02 00:22:11 +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:
committed by
Andrew Bartlett
parent
db48fb252f
commit
c45007953b
@ -21,7 +21,6 @@
|
|||||||
|
|
||||||
import random
|
import random
|
||||||
import uuid
|
import uuid
|
||||||
import sys
|
|
||||||
|
|
||||||
import itertools
|
import itertools
|
||||||
from samba import unix2nttime, nttime2unix
|
from samba import unix2nttime, nttime2unix
|
||||||
@ -2604,7 +2603,7 @@ class KCC(object):
|
|||||||
self.samdb = ldif_import_export.ldif_to_samdb(dburl, lp, ldif_file,
|
self.samdb = ldif_import_export.ldif_to_samdb(dburl, lp, ldif_file,
|
||||||
forced_local_dsa)
|
forced_local_dsa)
|
||||||
except ldif_import_export.LdifError, e:
|
except ldif_import_export.LdifError, e:
|
||||||
print >> sys.stderr, e
|
logger.critical(e)
|
||||||
return 1
|
return 1
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
@ -2629,6 +2628,6 @@ class KCC(object):
|
|||||||
ldif_import_export.samdb_to_ldif_file(self.samdb, dburl, lp, creds,
|
ldif_import_export.samdb_to_ldif_file(self.samdb, dburl, lp, creds,
|
||||||
ldif_file)
|
ldif_file)
|
||||||
except ldif_import_export.LdifError, e:
|
except ldif_import_export.LdifError, e:
|
||||||
print >> sys.stderr, e
|
logger.critical(e)
|
||||||
return 1
|
return 1
|
||||||
return 0
|
return 0
|
||||||
|
Reference in New Issue
Block a user