Hi! This function internally returns the value of thread-local variable, so it makes possible to get debug logs for certain request but not for all requests during some period of time.

P.S. Yes, additional non-inlined function call is not cheap at all but it's still much cheaper than eblob_log_raw call.