pancake 0.1.24 → 0.1.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -76,7 +76,7 @@ module Pancake
76
76
  end
77
77
 
78
78
  rescue Errors::HttpError => e
79
- if logger
79
+ if logger && log_http_error?(e)
80
80
  logger.error "Exception: #{e.message}"
81
81
  logger.error e.backtrace.join("\n")
82
82
  end
@@ -96,6 +96,10 @@ module Pancake
96
96
  @content_type
97
97
  end
98
98
 
99
+ def log_http_error?(error)
100
+ true
101
+ end
102
+
99
103
  def self.handle_exception(&block)
100
104
  if block_given?
101
105
  self._handle_exception = block
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pancake
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.24
4
+ version: 0.1.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Neighman
@@ -9,7 +9,7 @@ autorequire: pancake
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-22 00:00:00 +11:00
12
+ date: 2009-11-23 00:00:00 +11:00
13
13
  default_executable: pancake-gen
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency