Skip to content

Commit

Permalink
Merge pull request #19 from rusblaze/patch-1
Browse files Browse the repository at this point in the history
Update xml_appender.erl
  • Loading branch information
ahmednawras committed Oct 23, 2014
2 parents cb02d21 + 55cac9d commit 0861cf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xml_appender.erl
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ handle_call({change_level, Level}, State) ->
handle_call({change_filename, Fname}, #xml_appender{dir=Dir, suffix=Suf} = State) ->
File = Dir ++ "/" ++ Fname ++ "." ++ Suf,
{ok, Fd} = file:open(File, ?FILE_OPTIONS),
State2 = State#file_appender{file_name = Fname, fd = Fd},
State2 = State#xml_appender{file_name = Fname, fd = Fd},
?LOG2("Changed filename to ~p~n",[File]),
{ok, ok, State2};
handle_call(_Request, State) ->
Expand Down

0 comments on commit 0861cf3

Please sign in to comment.