|
|
| Author |
Message |
|
| Guest |
Posted: Mon Oct 01, 2007 4:50 pm |
|
|
|
Guest
|
I keep getting these errors in my log files:
Failed to wraplog "/tmp/rbucker/yaws/log/auth.log":{{badmatch,{error,enoent}},
|
|
|
| Back to top |
|
| Guest |
Posted: Mon Oct 01, 2007 5:27 pm |
|
|
|
Guest
|
Richard wrote:
> 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) ->
>
This is an old and not even yet deprecated syntax:
try:
-module(a).
-compile(export_all).
-record(foo, {a,b}).
f() ->
F = #foo{},
if
is_record(F, foo) ->
io:format("Foo is_record\n",[]);
true ->
ok
end,
if
record(F, foo) ->
io:format("Foo record\n",[]);
true ->
ok
end.
Eshell V5.5.5 (abort with ^G)
1> c(a).
{ok,a}
2> a:f().
Foo is_record
Foo record
ok
3>
AS for the wrap_log messages, odd - I've never seen them before.
Will take a deeper look.
/klacke
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Mon Oct 01, 2007 5:53 pm |
|
|
|
Guest
|
Richard wrote:
> 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},
>
Looking at the code, my impression is that this happens if
you manually remove the logfiles. Maybe some odd form
of wraplog daemon is also trying to truncate the yaws logs ???
So what is the list opinion on the right thing to do
for yaws_log if the logfile is suddenly gone? Huhhh
Maybe reopen and continue.
/klacke
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Mon Oct 01, 2007 6:03 pm |
|
|
|
Guest
|
I'll run some additional tests... it's possible that OS X is trying to purge the /tmp dir. OpenBSD does that from time to time, not that I can quote specific DOC.
Thanks.
PS: I think the code must always continue.... the first error message should be an error message pertaining to this err. |
|
|
| Back to top |
|
| Guest |
Posted: Mon Oct 01, 2007 6:10 pm |
|
|
|
Guest
|
Richard wrote:
> PS: I think the code must always continue.... the first error message
> should be an error message pertaining to this err.
>
>
>
Yes, not enough badness to bail out. I changed the
error_logger message for this particular case. It still deserves
an entry in the error_log, since if/when it happens it means that
the local system is configured to auto purge logfiles in a way
yaws doesn't like.
Getting yaws to play nice with the normal way of rotating
logs, is an other story. Should/could be done, where by normal I mean
that at HUP/reload, all logfiles are simply reopened. That way a rotator can
rename files according to an external scheme and then HUP/reload yaws.
This is not how it works today though.
/klacke
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Mon Oct 01, 2007 6:16 pm |
|
|
|
Guest
|
| The auto purge appears to be files and dirs. |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|