dCache/dcache — pull request #1080 by gbehrmann (2014-11-17 11:06:15+00:00)
Title: cells: Refine TTL discard message

A recent addition has added automatic discard of messages when their TTL is
exceeded. dCache logs a warning when this happens. Our admins have noted that
in particular for String messages, the warning is not particularly useful, as
only the message type is logged.

Since String messages are already a special case in dCache, I think it makes
sense to also log when they are discarded in a special way. This patch logs the
(possibly truncated) content of the string.

The patch also adds the message age and ttl to the log message.

Given how minor the change is and given that the log message was recently
introduced and may trigger support requests, I request that this change is
backported.

Target: trunk
Request: 2.11
Request: 2.10
Require-notes: yes
Require-book: yes
Acked-by: Paul Millar
Patch: https://rb.dcache.org/r/7503/
(cherry picked from commit fa36eb22260be4eaeed138f27408cd4d54fd1ee9)