simple_record 1.4.2 → 1.4.3
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.
- data/lib/simple_record/logging.rb +6 -2
- metadata +3 -3
@@ -6,7 +6,7 @@ module SimpleRecord
|
|
6
6
|
|
7
7
|
module ClassMethods
|
8
8
|
def write_usage(type, domain, q_type, params, results)
|
9
|
-
puts 'params=' + params.inspect
|
9
|
+
# puts 'params=' + params.inspect
|
10
10
|
if SimpleRecord.usage_logging_options
|
11
11
|
type_options = SimpleRecord.usage_logging_options[type]
|
12
12
|
if type_options
|
@@ -19,7 +19,11 @@ module SimpleRecord
|
|
19
19
|
conditions = params[:conditions][0] if params[:conditions]
|
20
20
|
line = usage_line(type_options[:format], [type, domain, q_type, conditions, params[:order]], results[:request_id], results[:box_usage])
|
21
21
|
file.puts line
|
22
|
-
|
22
|
+
type_options[:lines] = type_options[:lines] ? type_options[:lines] + 1 : 1
|
23
|
+
if type_options[:lines] % 100 == 0
|
24
|
+
file.flush
|
25
|
+
end
|
26
|
+
# puts 'line=' + line
|
23
27
|
end
|
24
28
|
end
|
25
29
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_record
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 1
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 1.4.
|
9
|
+
- 3
|
10
|
+
version: 1.4.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Travis Reeder
|