I keep getting these errors in my log files:

Failed to wraplog "/tmp/rbucker/yaws/log/auth.log":{{badmatch,{error,enoent}},
                                                    [{yaws_log,wrap_p,2},
                                                     {yaws_log,wrap,2},
                                                     {yaws_log,handle_info,2},
                                                     {gen_server,handle_msg,6},
                                                     {proc_lib,init_p,5}]}

Looking at yaws_log:warp_p() I see:

wrap_p(AL, State) when record(AL, alog) ->

As indicated by the BADMATCH error text; I believe the correct syntax is:

wrap_p(AL, State) when is_record(AL, alog) ->

(I've updated the code locally and I am testing.) However, I noticed that there are plenty of guard expressions all over the code. Many and possibly all of them are missing the "is_" prefix.


Richard