dumper 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/dumper/database/base.rb +1 -1
- data/lib/dumper/utility.rb +3 -2
- data/lib/dumper/version.rb +1 -1
- metadata +2 -2
data/lib/dumper/database/base.rb
CHANGED
data/lib/dumper/utility.rb
CHANGED
@@ -55,11 +55,11 @@ module Dumper
|
|
55
55
|
|
56
56
|
module LoggingMethods
|
57
57
|
def logger
|
58
|
-
|
58
|
+
@@logger ||= Dumper::Utility::SlimLogger.new("#{Rails.root}/log/dumper_agent.log", 1, 10.megabytes)
|
59
59
|
end
|
60
60
|
|
61
61
|
def stdout_logger
|
62
|
-
|
62
|
+
@@stdout_logger ||= Dumper::Utility::SlimLogger.new(STDOUT)
|
63
63
|
end
|
64
64
|
|
65
65
|
def log(msg, level=:info)
|
@@ -70,6 +70,7 @@ module Dumper
|
|
70
70
|
|
71
71
|
def log_last_error
|
72
72
|
log [ $!.class.name, $!.to_s ].join(', ')
|
73
|
+
log ("\n" << $!.backtrace.join("\n")), :debug
|
73
74
|
end
|
74
75
|
end
|
75
76
|
|
data/lib/dumper/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dumper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-06-
|
12
|
+
date: 2012-06-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: multi_json
|