Log start page length on send message
This commit is contained in:
parent
8aadd1ed3c
commit
43cbf9acca
2 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue