Skip to content

Commit

Permalink
Logger mer om slackmeldingen som feiler
Browse files Browse the repository at this point in the history
Co-authored-by: Amalie Mansåker <[email protected]>
  • Loading branch information
Simenullern and amalieem committed Jul 11, 2024
1 parent 4bb7e6b commit 6746a7a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/kotlin/no/nav/helse/spammer/SlackClient.kt
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ internal class SlackClient(private val accessToken: String, private val channel:
log.warn("timeout waiting for reply", err)
} catch (err: IOException) {
log.error("feil ved posting til slack: {}", err.message, err)
tjenestekall.info("Feil ved posting til slack med payload=$jsonPayload")
} finally {
connection?.disconnect()
}
Expand Down

0 comments on commit 6746a7a

Please sign in to comment.