
6 Nov
2020
6 Nov
'20
2:16 p.m.
On Fri, Nov 06, 2020 at 12:48:16PM +0800, Xu Xijian wrote:
+def record_runtime_log(hostname, start_time: Time.new, is_start: true) + log_file = "#{LOG_DIR}/#{hostname}" + if is_start File.open(log_file, 'w') do |f| # fluentd refresh time is 1s # let fluentd to monitor this file first sleep(2) f.puts "\n#{start_time.strftime('%Y-%m-%d %H:%M:%S')} starting QEMU" end + return start_time + end
Here is a return cmd, should add one blank line after this block.
got it Thanks, Shenwei
Thanks, Xijian