Commits

justin  committed b83fc33

Fix tuple/1 deprecation warning by using is_tuple/1
(patch from Tuncer Ayaz <tuncer.ayaz@gmail.com>)

  • Participants
  • Parent commits b03d5b8

Comments (0)

Files changed (2)

File src/webmachine_logger.erl

 zone(Val) when Val >= 0 ->
     io_lib:format("+~4..0w", [trunc(abs(Val))]).
 
-fmt_ip(IP) when tuple(IP) ->
+fmt_ip(IP) when is_tuple(IP) ->
     inet_parse:ntoa(IP);
 fmt_ip(undefined) ->
     "0.0.0.0";

File src/webmachine_perf_logger.erl

 zone(Val) when Val >= 0 ->
     io_lib:format("+~4..0w", [trunc(abs(Val))]).
 
-fmt_ip(IP) when tuple(IP) ->
+fmt_ip(IP) when is_tuple(IP) ->
     inet_parse:ntoa(IP);
 fmt_ip(undefined) ->
     "0.0.0.0";