In messages where a big string may be inserted, prefer “something something %s” over “something %s something”.
Example:
In this example, %s is a long hex-string representing an array’s contents.
Bad:
[DECODE] [DEBUG] Was passed array ‘%s’ for processing
Good:
[DECODE] [DEBUG] Was passed array for processing: ‘%s’
Best:
[DECODE] [DEBUG] Function myDecodeFunc called with myArray = ‘%s’
Posted by Yoni