servicemonitor 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/bin/servicemonitor +4 -1
  2. metadata +1 -1
data/bin/servicemonitor CHANGED
@@ -14,9 +14,12 @@ require "MonitorType/FluidDb"
14
14
  require "MonitorManager"
15
15
 
16
16
  def log( string, verbose=false )
17
+ type = verbose ? "VERB" : "INFO"
17
18
  if !ENV["VERBOSE"].nil? || verbose==false then
18
19
  puts string
19
- end
20
+ timestamp = Time.new.strftime( "%Y-%m-%d %H:%M:%S" )
21
+ puts "[#{type}] #{timestamp} :: #{string}"
22
+ end
20
23
  end
21
24
 
22
25
  if ARGV.length == 1 then
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: servicemonitor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: