Skip to content

Commit 0d49996

Browse files
Automated commit of generated code
1 parent 0e33f88 commit 0d49996

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

core/generated-sources/src/main/kotlin/org/jetbrains/kotlinx/dataframe/impl/io/FastDoubleParser.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public class FastDoubleParser(private val parserOptions: ParserOptions? = null)
165165
}
166166
}.also {
167167
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'." }
169169
}
170170
}
171171

@@ -185,7 +185,7 @@ public class FastDoubleParser(private val parserOptions: ParserOptions? = null)
185185
try {
186186
return parser.parseDouble(ba, offset, length)
187187
} catch (e: Exception) {
188-
logger.debug(e) {
188+
logger.trace(e) {
189189
"Failed to parse '${
190190
ba.toString(charset)
191191
}' from a ByteArray to Double with FastDoubleParser with locale '$locale'."
@@ -207,7 +207,7 @@ public class FastDoubleParser(private val parserOptions: ParserOptions? = null)
207207
try {
208208
return parser.parseDouble(cs)
209209
} catch (e: Exception) {
210-
logger.debug(e) {
210+
logger.trace(e) {
211211
"Failed to parse '$cs' from a CharSequence to Double with FastDoubleParser with locale '$locale'."
212212
}
213213
}
@@ -227,7 +227,7 @@ public class FastDoubleParser(private val parserOptions: ParserOptions? = null)
227227
try {
228228
return parser.parseDouble(ca, offset, length)
229229
} catch (e: Exception) {
230-
logger.debug(e) {
230+
logger.trace(e) {
231231
"Failed to parse '${
232232
ca.joinToString("")
233233
}' as from a CharArray to Double with FastDoubleParser with locale '$locale'."

core/generated-sources/src/test/kotlin/org/jetbrains/kotlinx/dataframe/io/FastDoubleParserTests.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,24 @@ import org.junit.Test
99
import java.text.NumberFormat
1010
import java.util.Locale
1111

12+
// can be enabled for showing logs for these tests
13+
private const val SHOW_LOGS = false
14+
1215
class FastDoubleParserTests {
1316

1417
private val logLevel = "org.slf4j.simpleLogger.log.${FastDoubleParser::class.qualifiedName}"
1518
private var loggerBefore: String? = null
1619

1720
@Before
1821
fun setLogger() {
22+
if (!SHOW_LOGS) return
1923
loggerBefore = System.getProperty(logLevel)
20-
System.setProperty(logLevel, "debug")
24+
System.setProperty(logLevel, "trace")
2125
}
2226

2327
@After
2428
fun restoreLogger() {
29+
if (!SHOW_LOGS) return
2530
if (loggerBefore != null) {
2631
System.setProperty(logLevel, loggerBefore)
2732
}

0 commit comments

Comments
 (0)