Skip to content

Commit d7943c4

Browse files
committed
FIXUP: datadog-sidecar put conditional imports after unconditional ones
1 parent 068ffe2 commit d7943c4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

datadog-sidecar/src/setup/unix.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Copyright 2021-Present Datadog, Inc. https://www.datadoghq.com/
22
// SPDX-License-Identifier: Apache-2.0
33

4-
#[cfg(feature = "logging")]
5-
use log::{debug, warn};
64
use std::sync::LazyLock;
75
use std::{
86
env, fs, io,
@@ -12,13 +10,16 @@ use std::{
1210
},
1311
path::{Path, PathBuf},
1412
};
15-
#[cfg(not(feature = "logging"))]
16-
use tracing::{debug, warn};
1713

1814
use crate::primary_sidecar_identifier;
1915
use crate::setup::Liaison;
2016
use datadog_ipc::platform::{self, locks::FLock, Channel};
2117

18+
#[cfg(feature = "logging")]
19+
use log::{debug, warn};
20+
#[cfg(not(feature = "logging"))]
21+
use tracing::{debug, warn};
22+
2223
pub type IpcClient = tokio::net::UnixStream;
2324
pub type IpcServer = UnixListener;
2425

0 commit comments

Comments
 (0)