Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
buenaflor committed Sep 13, 2023
1 parent 479a9c3 commit d5a0021
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.giancarlobuenaflor.kflogger

import kotlin.test.Test
val logger = KFluentLogger.forEnclosingClass()

class KFluentLoggerTest {
@Test
fun testNotCrashing() {
val logger = KFluentLogger.forEnclosingClass()
logger.atInfo().log("Hello, world! %s", "test")
logger.atWarning().log("Hello, world!")
logger.atSevere().log("Hello, world!")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ public final String getMessage() {
if (cachedMessage != null) {
return cachedMessage;
}
System.out.println(data.getTemplateContext().getMessage());
String formattedMessage = getLogMessageFormatter().format(data, metadata);
super.setMessage(formattedMessage);
return formattedMessage;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ public SimpleLoggerBackend(Logger logger) {

@Override
public void log(LogData data) {
System.out.println("SimpleLoggerBackend.log(LogData data) " + data.getTemplateContext().getMessage());
log(SimpleLogRecord.create(data, Platform.getInjectedMetadata()), data.wasForced());
}

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ kotlin.mpp.androidSourceSetLayoutVersion=2

#Publication
groupName=com.giancarlobuenaflor
versionName=0.0.2
versionName=0.0.3

0 comments on commit d5a0021

Please sign in to comment.