Skip to content
This repository was archived by the owner on Sep 26, 2020. It is now read-only.

Commit 9afc32e

Browse files
committed
Move log statement to run.
1 parent 5ed8bdf commit 9afc32e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

daemon/src/service.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ impl Service {
6767
let socket = UnixListener::bind(paths.socket()).await?;
6868
utils::set_permissions(paths.socket(), 0o777).await?; // rwx-rwx-rwx
6969

70-
slog::info!(log, "listening at {:?}", paths.socket());
71-
7270
Ok(Self {
7371
log,
7472
paths,
@@ -79,6 +77,7 @@ impl Service {
7977
}
8078

8179
pub async fn run(self) -> Result<(), ExitFailure> {
80+
slog::info!(self.log, "listening at {:?}", self.paths.socket());
8281
let mut incoming = self.socket.incoming();
8382
while !self.sigterm.load(Ordering::Relaxed) {
8483
if let Some(stream) = incoming.next().await {

0 commit comments

Comments
 (0)