We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cdbf9b7 commit f16d2a3Copy full SHA for f16d2a3
lib/logger/lib/logger/utils.ex
@@ -228,7 +228,7 @@ defmodule Logger.Utils do
228
end
229
230
def truncate_n(int, n) when int in 0..127, do: {int, n - 1}
231
- def truncate_n(int, n) when int in 127..0x07FF, do: {int, n - 2}
+ def truncate_n(int, n) when int in 128..0x07FF, do: {int, n - 2}
232
def truncate_n(int, n) when int in 0x800..0xFFFF, do: {int, n - 3}
233
def truncate_n(int, n) when int >= 0x10000 and is_integer(int), do: {int, n - 4}
234
0 commit comments