Asset Client and BAM event publisher re fractor

Would be better to check whether debug is enabled, even though it doesn't to any concatenation etc, since it still constructs the string in memory.