actix / actix-net

A collection of lower-level libraries for composable network services.
https://actix.rs
Apache License 2.0
713 stars 349 forks source link

Fix logging "starting service:..." #573

Closed oliverjantar closed 4 months ago

oliverjantar commented 4 months ago

PR Type

Bug Fix

PR Checklist

Check your PR fulfills the following:

Overview

When starting a server, message "starting service: "{}", workers: {}, listening on: {}" is never logged. The issue happens when mapping a builder.sockets and using mem::take() that replaces the original value with default. Since builder.sockets is empty, it won't log anything in the for cycle.