mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
KCC: print error messages to stderr, not stdout
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
ce9d1d5b27
commit
303c2c028d
@ -21,6 +21,7 @@
|
|||||||
|
|
||||||
import random
|
import random
|
||||||
import uuid
|
import uuid
|
||||||
|
import sys
|
||||||
|
|
||||||
import itertools
|
import itertools
|
||||||
from samba import unix2nttime, nttime2unix
|
from samba import unix2nttime, nttime2unix
|
||||||
@ -1683,11 +1684,11 @@ class KCC(object):
|
|||||||
return False, True
|
return False, True
|
||||||
|
|
||||||
debug.DEBUG_CYAN("SITES")
|
debug.DEBUG_CYAN("SITES")
|
||||||
print lsite, rsite
|
print >> sys.stderr, lsite, rsite
|
||||||
debug.DEBUG_BLUE("vertices")
|
debug.DEBUG_BLUE("vertices")
|
||||||
print e.vertices
|
print >> sys.stderr, e.vertices
|
||||||
debug.DEBUG_BLUE("bridgeheads")
|
debug.DEBUG_BLUE("bridgeheads")
|
||||||
print lbh, rbh
|
print >> sys.stderr, lbh, rbh
|
||||||
debug.DEBUG_BLUE("-" * 70)
|
debug.DEBUG_BLUE("-" * 70)
|
||||||
|
|
||||||
sitelink = e.site_link
|
sitelink = e.site_link
|
||||||
@ -2624,7 +2625,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 e
|
print >> sys.stderr, e
|
||||||
return 1
|
return 1
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
@ -2647,6 +2648,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 e
|
print >> sys.stderr, e
|
||||||
return 1
|
return 1
|
||||||
return 0
|
return 0
|
||||||
|
Reference in New Issue
Block a user