[Reviewer: Alex] Speculative fix to stop logs being truncated

Alex, can you review this speculative fix to stop the logs being truncated during diags collection. 

This is for [clearwater-infrastructure #61] (https://github.com/Metaswitch/clearwater-infrastructure/issues/61)