mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-07 17:17:41 +03:00
F #5906: added printing of stdout & stderr for onehost sync --force
This commit is contained in:
parent
8dacb7c65c
commit
d80fd8dafb
@ -144,6 +144,10 @@ private
|
|||||||
terminator_e = nil
|
terminator_e = nil
|
||||||
mutex = Mutex.new
|
mutex = Mutex.new
|
||||||
|
|
||||||
|
# print stdout and stderr for troubleshooting
|
||||||
|
STDERR.puts o.read
|
||||||
|
STDERR.puts e.read
|
||||||
|
|
||||||
out_reader = Thread.new { o.read }
|
out_reader = Thread.new { o.read }
|
||||||
err_reader = Thread.new { e.read }
|
err_reader = Thread.new { e.read }
|
||||||
terminator = Thread.new {
|
terminator = Thread.new {
|
||||||
|
@ -64,7 +64,7 @@ class HostSyncManager
|
|||||||
end
|
end
|
||||||
|
|
||||||
assemble_cmd = lambda do |steps|
|
assemble_cmd = lambda do |steps|
|
||||||
"exec 2>/dev/null; #{steps.join(' && ')}"
|
"exec 2>&1 /dev/null; #{steps.join(' && ')}"
|
||||||
end
|
end
|
||||||
|
|
||||||
case copy_method
|
case copy_method
|
||||||
|
Loading…
Reference in New Issue
Block a user