Skip to content

Commit 044079b

Browse files
committed
Register log if log level is not info
The default log level is INFO
1 parent 116ae2d commit 044079b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cpp/src/arrow/flight/sql/odbc/flight_sql/flight_sql_driver.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,10 @@ void FlightSqlDriver::RegisterLog() {
7979

8080
// Enable driver logging. Log files are not supported on Windows yet, since GLOG is not
8181
// tested fully on Windows.
82-
arrow::util::ArrowLog::StartArrowLog("arrow-flight-sql-odbc", log_level);
82+
// Info log level is enabled by default.
83+
if (log_level != ArrowLogLevel::ARROW_INFO) {
84+
arrow::util::ArrowLog::StartArrowLog("arrow-flight-sql-odbc", log_level);
85+
}
8386
}
8487

8588
} // namespace flight_sql

0 commit comments

Comments
 (0)