1
0
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:
Daniel Boca 2023-03-04 23:42:05 +02:00
parent 8dacb7c65c
commit d80fd8dafb
No known key found for this signature in database
GPG Key ID: D82613556F851A5D
2 changed files with 5 additions and 1 deletions

View File

@ -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 {

View File

@ -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