Skip to content

Commit

Permalink
Rename parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
rpatel-figure authored Jan 10, 2024
1 parent 09c05e2 commit 59ea4a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions service/src/main/kotlin/io/provenance/api/util/Debug.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ private val debugObjectMapper by lazy {

fun Any.toPrettyJson(): String = debugObjectMapper.writerWithDefaultPrettyPrinter().writeValueAsString(this)

fun buildLogMessage(msg: String, args: List<Pair<String, Any?>>): String {
fun buildLogMessage(message: String, args: List<Pair<String, Any?>>): String {
val argString = args.joinToString(
separator = ", ",
prefix = "[",
Expand All @@ -22,4 +22,4 @@ fun buildLogMessage(msg: String, args: List<Pair<String, Any?>>): String {
return "$msg $argString".trim()
}

fun buildLogMessage(msg: String, vararg args: Pair<String, Any?>): String = buildLogMessage(msg, args.toList())
fun buildLogMessage(message: String, vararg args: Pair<String, Any?>): String = buildLogMessage(message, args.toList())

0 comments on commit 59ea4a3

Please sign in to comment.