File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
core/generated-sources/src
main/kotlin/org/jetbrains/kotlinx/dataframe/impl/io
test/kotlin/org/jetbrains/kotlinx/dataframe/io Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ public class FastDoubleParser(private val parserOptions: ParserOptions? = null)
165
165
}
166
166
}.also {
167
167
if (it == null ) {
168
- logger.debug { " Could not parse '$this ' as Double with NumberFormat with locale '$locale '." }
168
+ logger.trace { " Could not parse '$this ' as Double with NumberFormat with locale '$locale '." }
169
169
}
170
170
}
171
171
@@ -185,7 +185,7 @@ public class FastDoubleParser(private val parserOptions: ParserOptions? = null)
185
185
try {
186
186
return parser.parseDouble(ba, offset, length)
187
187
} catch (e: Exception ) {
188
- logger.debug (e) {
188
+ logger.trace (e) {
189
189
" Failed to parse '${
190
190
ba.toString(charset)
191
191
} ' from a ByteArray to Double with FastDoubleParser with locale '$locale '."
@@ -207,7 +207,7 @@ public class FastDoubleParser(private val parserOptions: ParserOptions? = null)
207
207
try {
208
208
return parser.parseDouble(cs)
209
209
} catch (e: Exception ) {
210
- logger.debug (e) {
210
+ logger.trace (e) {
211
211
" Failed to parse '$cs ' from a CharSequence to Double with FastDoubleParser with locale '$locale '."
212
212
}
213
213
}
@@ -227,7 +227,7 @@ public class FastDoubleParser(private val parserOptions: ParserOptions? = null)
227
227
try {
228
228
return parser.parseDouble(ca, offset, length)
229
229
} catch (e: Exception ) {
230
- logger.debug (e) {
230
+ logger.trace (e) {
231
231
" Failed to parse '${
232
232
ca.joinToString(" " )
233
233
} ' as from a CharArray to Double with FastDoubleParser with locale '$locale '."
Original file line number Diff line number Diff line change @@ -9,19 +9,24 @@ import org.junit.Test
9
9
import java.text.NumberFormat
10
10
import java.util.Locale
11
11
12
+ // can be enabled for showing logs for these tests
13
+ private const val SHOW_LOGS = false
14
+
12
15
class FastDoubleParserTests {
13
16
14
17
private val logLevel = " org.slf4j.simpleLogger.log.${FastDoubleParser ::class .qualifiedName} "
15
18
private var loggerBefore: String? = null
16
19
17
20
@Before
18
21
fun setLogger () {
22
+ if (! SHOW_LOGS ) return
19
23
loggerBefore = System .getProperty(logLevel)
20
- System .setProperty(logLevel, " debug " )
24
+ System .setProperty(logLevel, " trace " )
21
25
}
22
26
23
27
@After
24
28
fun restoreLogger () {
29
+ if (! SHOW_LOGS ) return
25
30
if (loggerBefore != null ) {
26
31
System .setProperty(logLevel, loggerBefore)
27
32
}
You can’t perform that action at this time.
0 commit comments