Skip to content

Commit

Permalink
note
Browse files Browse the repository at this point in the history
  • Loading branch information
mmastrac committed Nov 25, 2024
1 parent 6cf049d commit 92c0cdf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions edb/native/pyo3_util/src/logging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ macro_rules! debug_log {
/// Initializes logging for the current thread. This function should be called
/// at the start of any new thread that needs to use logging.
///
/// Important: logging from threads requires taking the GIL and may have
/// performance impacts.
/// Important: logging from threads involves a write to a socket and taking the GIL,
/// any may have performance impacts when logging is enabled. Disabled logging is
/// nearly free, however.
pub fn initialize_logging_in_thread(python_package: &'static str) {
debug_log_method!(
"initialize_logging_in_thread",
Expand Down

0 comments on commit 92c0cdf

Please sign in to comment.