Fixed bug in debug where 'message' is not a string, plus include a
timestamp in the message.