Merge pull request #215 from glennsarti/ticket/maint/add-debug

(maint) Emit console messages when debugging is enabled
This commit is contained in:
Rob Braden 2017-04-04 15:16:31 -07:00 committed by GitHub
commit e3cda9d743

View file

@ -12,6 +12,8 @@ module Vmpooler
time = Time.new
stamp = time.strftime('%Y-%m-%d %H:%M:%S')
puts "[#{stamp}] #{string}" if ENV['VMPOOLER_DEBUG']
open(@file, 'a') do |f|
f.puts "[#{stamp}] #{string}"
end