Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove warn/2 function

It's better just to call error_logger:warning_msg/2 here.
See also commit f9a1069

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
  • Loading branch information...
commit d22380e1b14f0a9be38ddf76d3229623586a61f8 1 parent f20db99
@lemenkov lemenkov authored
Showing with 1 addition and 4 deletions.
  1. +1 −4 src/bitcask_file.erl
View
5 src/bitcask_file.erl
@@ -115,7 +115,7 @@ handle_call({file_open, Owner, Filename, Opts}, _From, State) ->
{_, true} ->
[read, write, exclusive, raw, binary]
end,
- [warn("Bitcask file option '~p' not supported~n", [Opt])
+ [error_logger:warning_msg("Bitcask file option '~p' not supported~n", [Opt])
|| Opt <- [o_sync],
proplists:get_bool(Opt, Opts)],
case file:open(Filename, Mode) of
@@ -190,6 +190,3 @@ check_owner({Pid, _Mref}, #state{owner=Owner}) ->
throw(owner_invariant_failed),
ok
end.
-
-warn(Fmt, Args) ->
- error_logger:warning_msg(Fmt, Args).
Please sign in to comment.
Something went wrong with that request. Please try again.