Adds debug messages to log