Skip to content

Commit

Permalink
Prevent dup level
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismccord committed Mar 11, 2024
1 parent 8631dbb commit c125dba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions priv/static/phoenix_live_reload.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ class LiveReloader {

log(level, str){
let levelColor = level === "debug" ? "cyan" : "inherit"
let consoleFunc = level === "error" ? level : "info"
console[consoleFunc](`%c📡 [${level}] ${str}`, `color: ${levelColor};`)
let consoleFunc = level === "error" ? level : "log"
console[consoleFunc](`%c📡 ${str}`, `color: ${levelColor};`)
}

closestCallerFileLine(node){
Expand Down

0 comments on commit c125dba

Please sign in to comment.