mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
Merge pull request #215 from glennsarti/ticket/maint/add-debug
(maint) Emit console messages when debugging is enabled
This commit is contained in:
commit
e3cda9d743
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue