Add debug output to production environments