Permalink
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...
1 parent f20db99 commit d22380e1b14f0a9be38ddf76d3229623586a61f8 @lemenkov lemenkov committed Jul 11, 2013
Showing with 1 addition and 4 deletions.
  1. +1 −4 src/bitcask_file.erl
View
@@ -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).

0 comments on commit d22380e

Please sign in to comment.