mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-19 14:10:37 +00:00
cleanups & self-review
This commit is contained in:
@@ -13,7 +13,7 @@ use tokio::task::JoinSet;
|
||||
use tokio_util::sync::CancellationToken;
|
||||
use tracing::{debug, error, info};
|
||||
|
||||
static LOGGING_DONE: OnceCell<()> = OnceCell::new();
|
||||
static LOGGING_DONE: OnceCell<utils::logging::FlushGuard> = OnceCell::new();
|
||||
|
||||
pub(crate) fn upload_stream(
|
||||
content: std::borrow::Cow<'static, [u8]>,
|
||||
@@ -205,11 +205,11 @@ pub(crate) async fn upload_remote_data(
|
||||
|
||||
pub(crate) fn ensure_logging_ready() {
|
||||
LOGGING_DONE.get_or_init(|| {
|
||||
let _ = utils::logging::init(
|
||||
utils::logging::init(
|
||||
utils::logging::LogFormat::Test,
|
||||
utils::logging::TracingErrorLayerEnablement::Disabled,
|
||||
utils::logging::Output::Stdout,
|
||||
)
|
||||
.expect("logging init failed");
|
||||
.expect("logging init failed")
|
||||
});
|
||||
}
|
||||
|
||||
@@ -31,7 +31,6 @@ pub mod id;
|
||||
pub mod shard;
|
||||
|
||||
mod hex;
|
||||
|
||||
pub use hex::Hex;
|
||||
|
||||
// http endpoint utils
|
||||
|
||||
Reference in New Issue
Block a user