On 12/01/2010 06:20 AM, Perry Myers wrote:
...
> +<arg name="lines" dir="O"
type="list" />
> +</method>
How do we ensure that the resulting lines output is not 'too large' (i.e. larger
than QMF can handle). Will we just truncate? Or return nothing except for an error code
(-ETOOLARGE)?
For now just truncate. As I have found out, QMF list is simply encoded and set as message
content via QPID API.
There's configurable per-queue resource limit on the message size (default 100MB) so
implementation will have to query that limit and/or catch exception and truncate.
In the future we may implement more general file transfer over AMQP directly, with
chunking/retransmissions etc.
...
> +<method name="system_logfile">
> +<arg name="filename" dir="O" type="lstr" />
> +</method>
What is the purpose of this method?
That was mindless copy from
https://fedorahosted.org/matahari/wiki/LoggingAPIs
I can't really justify it (would it return /var/log/messages ??) so I removed it from
wiki.
Instead, if 'file' parameter in extract_* is empty, it will default to
/var/log/messages*
> +<method name="truncate_logfile">
> +<arg name="rc" dir="O" type="uint32" />
> +</method>
What is the purpose of this method if there is no input filename for it to truncate?
That's an oversight in xml, there is 'file' parameter in wiki.
But I'm not sure about the purpose, logrotate is supposed to keep log size under
control.
Ryan, Chris - this is marked as ricci requirement, but I don't see it in ricci log
module.
What would be the use-case for truncate_logfile?