David Baelde:
> Surprisingly, we still get new questions every now and then, and yours
> requests fail, and there is no way to not return a request in the
> request.dynamic() handler.
hi David,
thanks for clarification. your solution below successfully surpresses
the error log entry. however, it seems that liquidsoap/request.dynamic
calls the external script every 2 seconds multipe times. since the script
makes expensive database calls (which may or may not return an URI), i
doubt that this is the best way to go... can i influence *when
request.dynamic triggers the external script?
maybe it's the best way to externalize all dynamic stuff and onyl use
request.push to one or more queues.
anyway, thansk for the add_protocol, havn't seen that before...
with that it's probably possible to add a custom say command, if
i'm not wrong again.
udo
> The solution I can propose is to create a protocol for dummy requests.
> This protocol fails, but in a "clean" way that doesn't result in logs.
>
> add_protocol("nothing",fun(_,_)->[])
>
> After that if you do the following, with "nothing:" instead of "", you
> don't get any logs:
>
> output.dummy(request.dynamic({request.create("nothing:")}),fallible=true)
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users