Add logging to generic debug messages
Add time to logging