deckard 0.5.3 → 0.5.4

Sign up to get free protection for your applications and to get access to all the features.
data/lib/deckard/log.rb CHANGED
@@ -6,5 +6,6 @@ class Deckard
6
6
  if log_file
7
7
  Deckard::Log.init(log_file)
8
8
  end
9
+ Deckard::Log.level(:info)
9
10
  end
10
11
  end
@@ -6,13 +6,13 @@ class Deckard
6
6
  begin
7
7
  retries = 1 unless retries
8
8
  result = RestClient.get(url)
9
- rescue
9
+ rescue Exception => e
10
10
  Deckard::Log.info("ALERT :: Could not connect to #{url}, retrying ...")
11
11
  sleep(Deckard::Config.content_check_retry_interval)
12
12
  retry if (retries += 1) < retry_count
13
13
  if retries >= retry_count
14
14
  subject = "ALERT :: Check Content Failed on #{url}"
15
- body = "Could not connect to #{url}"
15
+ body = "#{e} :: #{url}"
16
16
  log = subject + " -- " + body
17
17
  Deckard::Util.alert(priority, subject, body, log, schedule, url)
18
18
  check = false
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 5
8
- - 3
9
- version: 0.5.3
8
+ - 4
9
+ version: 0.5.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - joe williams
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-08-02 00:00:00 -07:00
17
+ date: 2010-08-10 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency