utopia 0.9.34 → 0.9.35
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/utopia/middleware/redirector.rb +4 -4
- data/lib/utopia/version.rb +1 -1
- metadata +3 -3
@@ -16,8 +16,6 @@ module Utopia
|
|
16
16
|
|
17
17
|
@error_path = error_path
|
18
18
|
@error_status = error_status
|
19
|
-
|
20
|
-
@log = Logger.new($stderr)
|
21
19
|
end
|
22
20
|
|
23
21
|
def to_s
|
@@ -55,10 +53,12 @@ module Utopia
|
|
55
53
|
begin
|
56
54
|
return @app.call(env)
|
57
55
|
rescue Exception => ex
|
58
|
-
|
56
|
+
log = Logger.new(env['rack.errors'])
|
57
|
+
|
58
|
+
log.error "Exception #{ex.to_s.dump}!"
|
59
59
|
|
60
60
|
ex.backtrace.each do |bt|
|
61
|
-
|
61
|
+
log.error bt
|
62
62
|
end
|
63
63
|
|
64
64
|
if env['PATH_INFO'] == @location
|
data/lib/utopia/version.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 9
|
8
|
-
-
|
9
|
-
version: 0.9.
|
8
|
+
- 35
|
9
|
+
version: 0.9.35
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Samuel Williams
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-07-
|
17
|
+
date: 2010-07-06 00:00:00 +12:00
|
18
18
|
default_executable: utopia
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|