Skip to content

Commit

Permalink
[fix #266] Enforcing logging toString
Browse files Browse the repository at this point in the history
  • Loading branch information
avivbeeri committed Sep 21, 2023
1 parent 50fee77 commit 49f85d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/dome.wren
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ class Log {
static context { __stack }
static print(level, text) {
var context = __stack.peek()
print(level, text, context)
print(level, text.toString, context)
}

foreign static f_level=(v)
static level=(v) { f_level = StringUtils.toUppercase(v) }
static level=(v) { f_level = StringUtils.toUppercase(v.toString) }
foreign static level
foreign static print(level, text, context)

Expand Down

0 comments on commit 49f85d5

Please sign in to comment.