mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 10:28:27 +00:00
Fix logging warn->debug
This commit is contained in:
@ -34,4 +34,17 @@ class AuthTokenTest extends CatsEffectSuite {
|
|||||||
!token2.copy(valid = Duration.minutes(10).some).validate(secret, Duration.millis(0))
|
!token2.copy(valid = Duration.minutes(10).some).validate(secret, Duration.millis(0))
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
test("signature") {
|
||||||
|
val token1 = AuthToken.user[IO](user, false, secret, None).unsafeRunSync()
|
||||||
|
val token2 =
|
||||||
|
AuthToken.user[IO](user, false, secret, Duration.seconds(10).some).unsafeRunSync()
|
||||||
|
|
||||||
|
assert(token1.sigValid(secret))
|
||||||
|
assert(token1.sigInvalid(otherSecret))
|
||||||
|
assert(token1.copy(valid = Duration.seconds(100).some).sigInvalid(secret))
|
||||||
|
|
||||||
|
assert(token2.sigValid(secret))
|
||||||
|
assert(token2.sigInvalid(otherSecret))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -108,7 +108,7 @@ final class ItemSearchPart[F[_]: Async](
|
|||||||
identity,
|
identity,
|
||||||
res =>
|
res =>
|
||||||
for {
|
for {
|
||||||
_ <- logger.warn(s"Searching with query: $res")
|
_ <- logger.debug(s"Searching with query: $res")
|
||||||
items <- searchOps
|
items <- searchOps
|
||||||
.searchSelect(details, cfg.maxNoteLength, today.some, batch)(
|
.searchSelect(details, cfg.maxNoteLength, today.some, batch)(
|
||||||
res.q,
|
res.q,
|
||||||
|
Reference in New Issue
Block a user