Skip to content

Commit

Permalink
change the way to log the array to a JSON string
Browse files Browse the repository at this point in the history
  • Loading branch information
lu-wang-dl committed Jun 4, 2018
1 parent a98fbc3 commit 759a234
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,15 @@ private[spark] class Instrumentation[E <: Estimator[_]] private (
}

def logNamedValue(name: String, value: Array[String]): Unit = {
log(compact(render(name -> value.toSeq)))
log(compact(render(name -> compact(render(value.toSeq)))))
}

def logNamedValue(name: String, value: Array[Long]): Unit = {
log(compact(render(name -> value.toSeq)))
log(compact(render(name -> compact(render(value.toSeq)))))
}

def logNamedValue(name: String, value: Array[Double]): Unit = {
log(compact(render(name -> value.toSeq)))
log(compact(render(name -> compact(render(value.toSeq)))))
}


Expand Down

0 comments on commit 759a234

Please sign in to comment.