Skip to content

Commit 1075c96

Browse files
committed
Debug Fix
1 parent e21dab9 commit 1075c96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

my-postgres-core/src/connection/postgres_connect_inner.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ impl PostgresConnectionInner {
249249
ctx: &crate::RequestContext,
250250
) -> Result<u64, MyPostgresError> {
251251
let mut start_connection = false;
252-
let is_debug = false;
252+
let is_debug = std::env::var("DEBUG").is_ok();
253253
let mut sw = StopWatch::new();
254254
sw.start();
255255
loop {

0 commit comments

Comments
 (0)