Skip to content
Browse files

Merge pull request #97 from lemenkov/drop_warn

Remove warn/2 function
  • Loading branch information...
2 parents 06150f0 + d22380e commit 6d8edf4cf8c2feed113f8679b54282534a8429e6 @evanmcc evanmcc committed Aug 24, 2013
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).

0 comments on commit 6d8edf4

Please sign in to comment.
Something went wrong with that request. Please try again.