debugtrace 1.0.0 → 1.1.0
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -3
- data/README.md +14 -24
- data/README_ja.md +13 -23
- data/examples/debugtrace.yml +2 -3
- data/lib/debugtrace/common.rb +3 -3
- data/lib/debugtrace/config.rb +50 -52
- data/lib/debugtrace/log_buffer.rb +1 -1
- data/lib/debugtrace/loggers.rb +1 -1
- data/lib/debugtrace/version.rb +1 -2
- data/lib/debugtrace.rb +19 -27
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa74406233753b57eb94f0f05e67ec9e9818014ccaa6fda15a93ff65bd406be4
|
4
|
+
data.tar.gz: 131f249a1bddfd25c5be1d7c87a140c8b77540863ea8b84a6b9a5205f3bb57db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ff6920733cfc9e0f51d3fe0b532cb5389ca419cf6f950c3bd4083a6202e4673cd0eb93ba67df1aaca431562dc8a36c43c67572d20fc90e0e30b0a265f18ec3c
|
7
|
+
data.tar.gz: de378f10d17017256fa03c5fac2fa2709e9b0ee8775f79c7373139302baeb062584ea5534f43a3d74f4725e2ae448257aa69bd3ba6c245bd5e26a7c5b31650ba
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,19 @@
|
|
1
|
-
##
|
1
|
+
## 1.1.0 - May 25, 2025
|
2
2
|
|
3
|
-
|
3
|
+
### Bug fixes
|
4
4
|
|
5
|
-
|
5
|
+
* Fixed a bug where line breaks were not inserted between elements when outputting `Array`, `Hash`, and `Set` using the print method.
|
6
|
+
|
7
|
+
### Specification changes
|
8
|
+
|
9
|
+
* Changed the following keyword argument names for the `print` method, and also changed the property names of the same names in `debugtrace.yml`.
|
10
|
+
* `output_size_limit` ← `collection_limit`
|
11
|
+
* `output_length_limit` ← `string_limit` and `bytes_limit` _(Unified)_
|
12
|
+
|
13
|
+
## 1.0.1 - May 19, 2025
|
14
|
+
|
15
|
+
Fixed a bug that caused an error if the environment variable `DEBUGTRACE_CONFIG` was not set.
|
16
|
+
|
17
|
+
## 1.0.0 - May 18, 2025
|
18
|
+
|
19
|
+
This is the initial release.
|
data/README.md
CHANGED
@@ -140,8 +140,8 @@ DebugTrace module has the following methods.
|
|
140
140
|
<small><i>The following arguments can be specified in debugtrace.yml (argument specification takes precedence)</i></small><br>
|
141
141
|
<code>minimum_output_size</code>: The minimum number of elements to print for <code>Array</code>, <code>Hash</code> and <code>Set</code><br>
|
142
142
|
<code>minimum_output_length</code>: The minimum length to print the length of the string<br>
|
143
|
-
<code>
|
144
|
-
<code>
|
143
|
+
<code>output_size_limit</code>: The limit on the number of elements output for <code>Map</code>, <code>Hash</code> and <code>Set</code><br>
|
144
|
+
<code>output_length_limit</code>: The limit on the number of characters that can be output from a string<br>
|
145
145
|
<code>reflection_limit</code>: The limit of reflection nesting<br>
|
146
146
|
</td>
|
147
147
|
<td>the argument value if it is specified, otherwise <code>nil</code></td>
|
@@ -527,44 +527,30 @@ You can specify the following properties in debugtrace.yml.
|
|
527
527
|
</td>
|
528
528
|
</tr>
|
529
529
|
<tr>
|
530
|
-
<td><code>
|
530
|
+
<td><code>output_size_limit</code></td>
|
531
531
|
<td>
|
532
532
|
The limit on the number of elements output for <code>Array</code>, <code>Hash</code>, and <code>Set</code><br>
|
533
533
|
<small><b>Example:</b></small>
|
534
534
|
<ul>
|
535
|
-
<code>
|
535
|
+
<code>output_size_limit: 64</code>
|
536
536
|
</ul>
|
537
537
|
<small><b>Default Value:</b></small>
|
538
538
|
<ul>
|
539
|
-
<code>
|
539
|
+
<code>output_size_limit: 128</code>
|
540
540
|
</ul>
|
541
541
|
</td>
|
542
542
|
</tr>
|
543
543
|
<tr>
|
544
|
-
<td><code>
|
544
|
+
<td><code>output_length_limit</code></td>
|
545
545
|
<td>
|
546
|
-
|
546
|
+
The limit on the number of characters that can be output from a string<br>
|
547
547
|
<small><b>Example:</b></small>
|
548
548
|
<ul>
|
549
|
-
<code>
|
549
|
+
<code>output_length_limit: 64</code>
|
550
550
|
</ul>
|
551
551
|
<small><b>Default Value:</b></small>
|
552
552
|
<ul>
|
553
|
-
<code>
|
554
|
-
</ul>
|
555
|
-
</td>
|
556
|
-
</tr>
|
557
|
-
<tr>
|
558
|
-
<td><code>bytes_limit</code></td>
|
559
|
-
<td>
|
560
|
-
The limit on the number of characters to be output a string as a byte array<br>
|
561
|
-
<small><b>Example:</b></small>
|
562
|
-
<ul>
|
563
|
-
<code>bytes_limit: 64</code>
|
564
|
-
</ul>
|
565
|
-
<small><b>Default Value:</b></small>
|
566
|
-
<ul>
|
567
|
-
<code>bytes_limit: 256</code>
|
553
|
+
<code>output_length_limit: 256</code>
|
568
554
|
</ul>
|
569
555
|
</td>
|
570
556
|
</tr>
|
@@ -584,7 +570,11 @@ You can specify the following properties in debugtrace.yml.
|
|
584
570
|
</tr>
|
585
571
|
</table>
|
586
572
|
|
587
|
-
### 6.
|
573
|
+
### 6. CHANGELOG
|
574
|
+
|
575
|
+
[CHANGELOG](CHANGELOG.md)
|
576
|
+
|
577
|
+
### 7. License
|
588
578
|
|
589
579
|
[MIT License(MIT)](LICENSE.txt)
|
590
580
|
|
data/README_ja.md
CHANGED
@@ -138,8 +138,8 @@ DebugTraceモジュールには以下のメソッドがあります。
|
|
138
138
|
<small><i>以降の引数は、debugtrace.ymlで指定可能 (引数指定が優先)</i></small><br>
|
139
139
|
<code>minimum_output_size</code>: <code>Array</code>, <code>Hash</code>および<code>Set</code>の要素数を出力する最小要素数<br>
|
140
140
|
<code>minimum_output_length</code>: 文字列の長さを出力する最小の長さ<br>
|
141
|
-
<code>
|
142
|
-
<code>
|
141
|
+
<code>output_size_limit</code>: <code>Array</code>, <code>Hash</code>および<code>Set</code>の要素の出力数の制限値<br>
|
142
|
+
<code>output_length_limit</code>: 文字列の出力文字数の制限値<br>
|
143
143
|
<code>reflection_limit</code>: リフレクションのネスト数の制限値<br>
|
144
144
|
</td>
|
145
145
|
<td>値の指定があれば引数値、なければ<code>nil</code></td>
|
@@ -525,44 +525,30 @@ debugtrace.ymlには以下のプロパティを指定できます。
|
|
525
525
|
</td>
|
526
526
|
</tr>
|
527
527
|
<tr>
|
528
|
-
<td><code>
|
528
|
+
<td><code>output_size_limit</code></td>
|
529
529
|
<td>
|
530
530
|
Array</code>, <code>Hash</code>および<code>Set</code>の要素の出力数の制限値<br>
|
531
531
|
<small><b>設定例:</b></small>
|
532
532
|
<ul>
|
533
|
-
<code>
|
533
|
+
<code>output_size_limit: 64</code>
|
534
534
|
</ul>
|
535
535
|
<small><b>初期値:</b></small>
|
536
536
|
<ul>
|
537
|
-
<code>
|
537
|
+
<code>output_size_limit: 128</code>
|
538
538
|
</ul>
|
539
539
|
</td>
|
540
540
|
</tr>
|
541
541
|
<tr>
|
542
|
-
<td><code>
|
542
|
+
<td><code>output_length_limit</code></td>
|
543
543
|
<td>
|
544
544
|
文字列の出力文字数の制限値<br>
|
545
545
|
<small><b>設定例:</b></small>
|
546
546
|
<ul>
|
547
|
-
<code>
|
547
|
+
<code>output_length_limit: 64</code>
|
548
548
|
</ul>
|
549
549
|
<small><b>初期値:</b></small>
|
550
550
|
<ul>
|
551
|
-
<code>
|
552
|
-
</ul>
|
553
|
-
</td>
|
554
|
-
</tr>
|
555
|
-
<tr>
|
556
|
-
<td><code>bytes_limit</code></td>
|
557
|
-
<td>
|
558
|
-
文字列をバイト配列として出力する場合のの出力数の制限値<br>
|
559
|
-
<small><b>設定例:</b></small>
|
560
|
-
<ul>
|
561
|
-
<code>bytes_limit: 64</code>
|
562
|
-
</ul>
|
563
|
-
<small><b>初期値:</b></small>
|
564
|
-
<ul>
|
565
|
-
<code>bytes_limit: 256</code>
|
551
|
+
<code>output_length_limit: 256</code>
|
566
552
|
</ul>
|
567
553
|
</td>
|
568
554
|
</tr>
|
@@ -582,7 +568,11 @@ debugtrace.ymlには以下のプロパティを指定できます。
|
|
582
568
|
</tr>
|
583
569
|
</table>
|
584
570
|
|
585
|
-
### 6.
|
571
|
+
### 6. 修正履歴
|
572
|
+
|
573
|
+
[修正履歴](CHANGELOG_ja.md)
|
574
|
+
|
575
|
+
### 7. ライセンス
|
586
576
|
|
587
577
|
[MIT ライセンス(MIT)](LICENSE.txt)
|
588
578
|
|
data/examples/debugtrace.yml
CHANGED
data/lib/debugtrace/common.rb
CHANGED
@@ -12,8 +12,8 @@ module Common
|
|
12
12
|
# @return [String] the value
|
13
13
|
# @raise [TypeError] if the value is not an instance of the type or the subclass of the type
|
14
14
|
def self.check_type(value_name, value, type)
|
15
|
-
raise TypeError
|
16
|
-
raise TypeError
|
15
|
+
raise TypeError, "Argument value_name (=#{value_name}) must be a String" unless value_name.is_a?(String)
|
16
|
+
raise TypeError, "Argument type (=#{type}) must be a Class" unless type.is_a?(Class)
|
17
17
|
|
18
18
|
error = false
|
19
19
|
if type == FalseClass || type == TrueClass
|
@@ -30,7 +30,7 @@ module Common
|
|
30
30
|
top_type_name = type.name.slice(0).upcase
|
31
31
|
a = top_type_name == 'A' || top_type_name == 'I' || top_type_name == 'U' ||
|
32
32
|
top_type_name == 'E' || top_type_name == 'O' ? 'an' : 'a'
|
33
|
-
raise TypeError
|
33
|
+
raise TypeError, "Argument #{value_name} (=#{value_string}) must be #{a} #{type}"
|
34
34
|
end
|
35
35
|
return value
|
36
36
|
end
|
data/lib/debugtrace/config.rb
CHANGED
@@ -8,69 +8,67 @@ require_relative 'common'
|
|
8
8
|
class Config
|
9
9
|
attr_reader :config_path
|
10
10
|
attr_reader :config
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
attr_reader :reflection_limit
|
11
|
+
attr_accessor :logger_name
|
12
|
+
attr_accessor :log_path
|
13
|
+
attr_accessor :rubylogger_format
|
14
|
+
attr_accessor :log_datetime_format
|
15
|
+
attr_accessor :enter_format
|
16
|
+
attr_accessor :leave_format
|
17
|
+
attr_accessor :thread_boundary_format
|
18
|
+
attr_accessor :maximum_indents
|
19
|
+
attr_accessor :indent_string
|
20
|
+
attr_accessor :data_indent_string
|
21
|
+
attr_accessor :limit_string
|
22
|
+
attr_accessor :circular_reference_string
|
23
|
+
attr_accessor :varname_value_separator
|
24
|
+
attr_accessor :key_value_separator
|
25
|
+
attr_accessor :print_suffix_format
|
26
|
+
attr_accessor :size_format
|
27
|
+
attr_accessor :minimum_output_size
|
28
|
+
attr_accessor :length_format
|
29
|
+
attr_accessor :minimum_output_length
|
30
|
+
attr_accessor :data_output_width
|
31
|
+
attr_accessor :bytes_count_in_line
|
32
|
+
attr_accessor :output_size_limit
|
33
|
+
attr_accessor :output_length_limit
|
34
|
+
attr_accessor :reflection_limit
|
36
35
|
|
37
36
|
# Initializes with a yml file in the config_path.
|
38
37
|
#
|
39
38
|
# @param config_path [String] path of the yml file
|
40
39
|
def initialize(config_path)
|
41
|
-
@config_path =
|
40
|
+
@config_path = config_path
|
42
41
|
if File.exist?(@config_path)
|
43
42
|
@config = YAML.load_file(@config_path)
|
44
43
|
else
|
45
44
|
@config_path = '<No config file>'
|
46
45
|
@config = nil
|
47
46
|
end
|
48
|
-
@logger_name = get_value 'logger'
|
49
|
-
@log_path = get_value 'log_path'
|
50
|
-
@rubylogger_format = get_value 'rubylogger_format'
|
51
|
-
@log_datetime_format = get_value 'log_datetime_format'
|
52
|
-
@enabled = get_value 'enabled'
|
53
|
-
@enter_format = get_value 'enter_format'
|
54
|
-
@leave_format = get_value 'leave_format'
|
55
|
-
@thread_boundary_format = get_value 'thread_boundary_format'
|
56
|
-
@maximum_indents = get_value 'maximum_indents'
|
57
|
-
@indent_string = get_value 'indent_string'
|
58
|
-
@data_indent_string = get_value 'data_indent_string'
|
59
|
-
@limit_string = get_value 'limit_string'
|
60
|
-
@circular_reference_string = get_value 'circular_reference_string'
|
61
|
-
@varname_value_separator = get_value 'varname_value_separator'
|
62
|
-
@key_value_separator = get_value 'key_value_separator'
|
63
|
-
@print_suffix_format = get_value 'print_suffix_format'
|
64
|
-
@size_format = get_value 'size_format'
|
65
|
-
@minimum_output_size = get_value 'minimum_output_size'
|
66
|
-
@length_format = get_value 'length_format'
|
67
|
-
@minimum_output_length = get_value 'minimum_output_length'
|
68
|
-
@data_output_width = get_value 'data_output_width'
|
69
|
-
@bytes_count_in_line = get_value 'bytes_count_in_line'
|
70
|
-
@
|
71
|
-
@
|
72
|
-
@
|
73
|
-
@reflection_limit = get_value 'reflection_limit' , 4
|
47
|
+
@logger_name = get_value 'logger' , 'stderr'
|
48
|
+
@log_path = get_value 'log_path' , 'debugtrace.log'
|
49
|
+
@rubylogger_format = get_value 'rubylogger_format' , "%2$s %1$s %4$s\n"
|
50
|
+
@log_datetime_format = get_value 'log_datetime_format' , '%Y-%m-%d %H:%M:%S.%L%:z'
|
51
|
+
@enabled = get_value 'enabled' , true
|
52
|
+
@enter_format = get_value 'enter_format' , 'Enter %1$s (%2$s:%3$d) <- %4$s (%5$s:%6$d)'
|
53
|
+
@leave_format = get_value 'leave_format' , 'Leave %1$s (%2$s:%3$d) duration: %4$.3f ms'
|
54
|
+
@thread_boundary_format = get_value 'thread_boundary_format' , '______________________________ %1$s #%2$d ______________________________'
|
55
|
+
@maximum_indents = get_value 'maximum_indents' , 32
|
56
|
+
@indent_string = get_value 'indent_string' , '| '
|
57
|
+
@data_indent_string = get_value 'data_indent_string' , ' '
|
58
|
+
@limit_string = get_value 'limit_string' , '...'
|
59
|
+
@circular_reference_string = get_value 'circular_reference_string', '*** Circular Reference ***'
|
60
|
+
@varname_value_separator = get_value 'varname_value_separator' , ' = '
|
61
|
+
@key_value_separator = get_value 'key_value_separator' , ': '
|
62
|
+
@print_suffix_format = get_value 'print_suffix_format' , ' (%2$s:%3$d)'
|
63
|
+
@size_format = get_value 'size_format' , '(size:%d)'
|
64
|
+
@minimum_output_size = get_value 'minimum_output_size' , 256
|
65
|
+
@length_format = get_value 'length_format' , '(length:%d)'
|
66
|
+
@minimum_output_length = get_value 'minimum_output_length' , 256
|
67
|
+
@data_output_width = get_value 'data_output_width' , 70
|
68
|
+
@bytes_count_in_line = get_value 'bytes_count_in_line' , 16
|
69
|
+
@output_size_limit = get_value 'output_size_limit' , 128
|
70
|
+
@output_length_limit = get_value 'output_length_limit' , 256
|
71
|
+
@reflection_limit = get_value 'reflection_limit' , 4
|
74
72
|
end
|
75
73
|
|
76
74
|
# Returns true if logging is enabled, false otherwise.
|
data/lib/debugtrace/loggers.rb
CHANGED
@@ -11,7 +11,7 @@ class LoggerBase
|
|
11
11
|
# @param message [String] The message to output
|
12
12
|
# @raise [Exception] always
|
13
13
|
def print(message)
|
14
|
-
raise Exception
|
14
|
+
raise Exception, 'LoggerBase.print is an abstract method.'
|
15
15
|
end
|
16
16
|
|
17
17
|
# Returns a string representation of this object.
|
data/lib/debugtrace/version.rb
CHANGED
data/lib/debugtrace.rb
CHANGED
@@ -52,7 +52,7 @@ module DebugTrace
|
|
52
52
|
# Initialize this class
|
53
53
|
def self.initialize()
|
54
54
|
config_path = ENV['DEBUGTRACE_CONFIG']
|
55
|
-
if config_path ==
|
55
|
+
if config_path == nil || config_path.empty?
|
56
56
|
config_path = './debugtrace.yml'
|
57
57
|
end
|
58
58
|
|
@@ -86,32 +86,29 @@ module DebugTrace
|
|
86
86
|
# Contains options to pass to the print method.
|
87
87
|
class PrintOptions
|
88
88
|
attr_reader :reflection, :minimum_output_size, :minimum_output_length,
|
89
|
-
:
|
89
|
+
:output_size_limit, :output_length_limit, :reflection_limit
|
90
90
|
|
91
91
|
# Initializes this object.
|
92
92
|
#
|
93
93
|
# @param reflection [TrueClass, FalseClass] use reflection if true
|
94
94
|
# @param minimum_output_size [Integer] the minimum value to output the number of elements for Array and Hash (overrides debugtarace.yml value)
|
95
95
|
# @param minimum_output_length [Integer] the minimum value to output the length of String and byte array (overrides debugtarace.yml value)
|
96
|
-
# @param
|
97
|
-
# @param
|
98
|
-
# @param string_limit [Integer] the limit value of characters for string to output (overrides debugtarace.yml value)
|
96
|
+
# @param output_size_limit [Integer] Output limit of collection elements (overrides debugtarace.yml value)
|
97
|
+
# @param output_length_limit [Integer] the limit value of characters for string to output (overrides debugtarace.yml value)
|
99
98
|
# @param reflection_limit [Integer] reflection limits when using reflection (overrides debugtarace.yml value)
|
100
99
|
def initialize(
|
101
100
|
reflection,
|
102
101
|
minimum_output_size,
|
103
102
|
minimum_output_length,
|
104
|
-
|
105
|
-
|
106
|
-
string_limit,
|
103
|
+
output_size_limit,
|
104
|
+
output_length_limit,
|
107
105
|
reflection_limit
|
108
106
|
)
|
109
107
|
@reflection = reflection
|
110
108
|
@minimum_output_size = minimum_output_size == -1 ? DebugTrace.config.minimum_output_size : minimum_output_size
|
111
109
|
@minimum_output_length = minimum_output_length == -1 ? DebugTrace.config.minimum_output_length : minimum_output_length
|
112
|
-
@
|
113
|
-
@
|
114
|
-
@string_limit = string_limit == -1 ? DebugTrace.config.string_limit : string_limit
|
110
|
+
@output_size_limit = output_size_limit == -1 ? DebugTrace.config.output_size_limit : output_size_limit
|
111
|
+
@output_length_limit = output_length_limit == -1 ? DebugTrace.config.output_length_limit : output_length_limit
|
115
112
|
@reflection_limit = reflection_limit == -1 ? DebugTrace.config.reflection_limit : reflection_limit
|
116
113
|
end
|
117
114
|
end
|
@@ -228,7 +225,7 @@ module DebugTrace
|
|
228
225
|
|
229
226
|
count = 1
|
230
227
|
value.each_char do |char|
|
231
|
-
if count > print_options.
|
228
|
+
if count > print_options.output_length_limit
|
232
229
|
single_quote_buff.no_break_append(@@config.limit_string)
|
233
230
|
double_quote_buff.no_break_append(@@config.limit_string)
|
234
231
|
break
|
@@ -302,7 +299,7 @@ module DebugTrace
|
|
302
299
|
buff.line_feed
|
303
300
|
chars = ''
|
304
301
|
end
|
305
|
-
if count >= print_options.
|
302
|
+
if count >= print_options.output_length_limit
|
306
303
|
buff.no_break_append(@@config.limit_string)
|
307
304
|
break
|
308
305
|
end
|
@@ -414,11 +411,11 @@ module DebugTrace
|
|
414
411
|
close_char = ']'
|
415
412
|
|
416
413
|
if values.is_a?(Hash)
|
417
|
-
#
|
414
|
+
# Hash
|
418
415
|
open_char = '{'
|
419
416
|
close_char = '}'
|
420
417
|
elsif values.is_a?(Set)
|
421
|
-
#
|
418
|
+
# Set
|
422
419
|
open_char = 'Set['
|
423
420
|
close_char = ']'
|
424
421
|
end
|
@@ -461,7 +458,7 @@ module DebugTrace
|
|
461
458
|
values.each do |element|
|
462
459
|
buff.no_break_append(', ') if index > 0
|
463
460
|
|
464
|
-
if index >= print_options.
|
461
|
+
if index >= print_options.output_size_limit
|
465
462
|
buff.append(@@config.limit_string)
|
466
463
|
break
|
467
464
|
end
|
@@ -540,15 +537,12 @@ module DebugTrace
|
|
540
537
|
# @option reflection [TrueClass, FalseClass] use reflection if true
|
541
538
|
# @option minimum_output_size [Integer] the minimum value to output the number of elements for Array and Hash (overrides debugtarace.yml value)
|
542
539
|
# @option minimum_output_length [Integer] the minimum value to output the length of String and byte array (overrides debugtarace.yml value)
|
543
|
-
# @option
|
544
|
-
# @option
|
545
|
-
# @option string_limit [Integer] the limit value of characters for string to output (overrides debugtarace.yml value)
|
540
|
+
# @option output_size_limit [Integer] Output limit of collection elements (overrides debugtarace.yml value)
|
541
|
+
# @option output_length_limit [Integer] the limit value of characters for string to output (overrides debugtarace.yml value)
|
546
542
|
# @option reflection_limit [Integer] reflection limits when using reflection (overrides debugtarace.yml value)
|
547
543
|
def self.print(name, value = @@DO_NOT_OUTPUT,
|
548
|
-
reflection: false,
|
549
|
-
|
550
|
-
collection_limit: -1, bytes_limit: -1,
|
551
|
-
string_limit: -1, reflection_limit: -1)
|
544
|
+
reflection: false, minimum_output_size: -1, minimum_output_length: -1,
|
545
|
+
output_size_limit: -1, output_length_limit: -1, reflection_limit: -1)
|
552
546
|
@@thread_mutex.synchronize do
|
553
547
|
print_start
|
554
548
|
return value unless @@config.enabled?
|
@@ -565,10 +559,8 @@ module DebugTrace
|
|
565
559
|
else
|
566
560
|
# with value
|
567
561
|
print_options = PrintOptions.new(
|
568
|
-
reflection,
|
569
|
-
|
570
|
-
collection_limit, bytes_limit,
|
571
|
-
string_limit, reflection_limit
|
562
|
+
reflection, minimum_output_size, minimum_output_length,
|
563
|
+
output_size_limit, output_length_limit, reflection_limit
|
572
564
|
)
|
573
565
|
@@last_log_buff = to_string(name, value, print_options)
|
574
566
|
end
|