Log start page length on send message

This commit is contained in:
Mikołaj Pich 2021-02-07 16:29:51 +01:00
parent 8aadd1ed3c
commit 43cbf9acca
2 changed files with 3 additions and 2 deletions

View file

@ -54,7 +54,7 @@ class ErrorInterceptor : Interceptor {
doc.select("form")?.attr("action")?.let {
if ("SetNewPassword" in it) {
logger.debug(redirectUrl)
logger.debug("Set new password action url: $redirectUrl")
throw PasswordChangeRequiredException("Wymagana zmiana hasła użytkownika", redirectUrl)
}
}

View file

@ -88,8 +88,9 @@ class MessagesRepository(private val api: MessagesService) {
}
suspend fun sendMessage(subject: String, content: String, recipients: List<Recipient>): SentMessage {
val res = api.getStart()
logger.debug("Subject length: ${subject.length}, content length: ${content.length}, recipients number: ${recipients.size}")
val res = api.getStart()
logger.debug("Start page length: ${res.length}")
return api.sendMessage(
sendMessageRequest = SendMessageRequest(
SendMessageRequest.Incoming(