Skip to content

Commit

Permalink
Update ObjectHandler.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
fengzhizi715 committed Feb 10, 2022
1 parent 43e800a commit 0769e90
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,17 @@ class ObjectHandler:BaseHandler() {

override fun handle(obj: Any, jsonConfig: JSONConfig): Boolean {

if (L.getConverter()!=null) {
val converter = L.getConverter()

if (converter!=null) {

jsonConfig.printers.map {

val formatter = it.formatter

var msg = obj.toJavaClass() + LoggerPrinter.BR + formatter.spliter()

val message = L.getConverter()!!.toJson(obj).run {
val message = converter.toJson(obj).run {
JSONObject(this)
}
.formatJSON()
Expand Down

0 comments on commit 0769e90

Please sign in to comment.