Skip to content

Commit

Permalink
Code cleanup and simplified to allow rapid.log.info(...) for zero-i…
Browse files Browse the repository at this point in the history
…mport scenario
  • Loading branch information
darkfrog26 committed Jan 16, 2025
1 parent 6da628d commit 6b60760
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
3 changes: 3 additions & 0 deletions scribe/shared/src/main/scala/rapid/log.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package rapid

object log extends RapidLoggerSupport
7 changes: 0 additions & 7 deletions scribe/shared/src/main/scala/rapid/logger.scala

This file was deleted.

4 changes: 2 additions & 2 deletions scribe/shared/src/test/scala/spec/ScribeRapidSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class ScribeRapidSpec extends AnyWordSpec with Matchers {
.replace()

"do rapid logging" in {
logger.info("1").map { _ =>
log.info("1").map { _ =>
messages should be(List("1"))
}.sync()
}
Expand All @@ -35,7 +35,7 @@ class ScribeRapidSpec extends AnyWordSpec with Matchers {
"do reference logging" in {
messages = Nil

logger.info("4").map { _ =>
log.info("4").map { _ =>
messages should be(List("4"))
}.sync()
}
Expand Down

0 comments on commit 6b60760

Please sign in to comment.