code: def log_queries(recipe):
      
      logger.debug(
          '⚐ Badge %s: SQL queries time %.2f second(s)',
          recipe.slug,
          sum([float(q['time']) for q in connection.queries]))
docs: Logs recipe instance SQL queries (actually, only time).