mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-04 05:17:40 +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
|
||||
mutex = Mutex.new
|
||||
|
||||
# print stdout and stderr for troubleshooting
|
||||
STDERR.puts o.read
|
||||
STDERR.puts e.read
|
||||
|
||||
out_reader = Thread.new { o.read }
|
||||
err_reader = Thread.new { e.read }
|
||||
terminator = Thread.new {
|
||||
|
@ -64,7 +64,7 @@ class HostSyncManager
|
||||
end
|
||||
|
||||
assemble_cmd = lambda do |steps|
|
||||
"exec 2>/dev/null; #{steps.join(' && ')}"
|
||||
"exec 2>&1 /dev/null; #{steps.join(' && ')}"
|
||||
end
|
||||
|
||||
case copy_method
|
||||
|
Loading…
Reference in New Issue
Block a user