File tree Expand file tree Collapse file tree
google/cloud/odbc/bq_driver/internal Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -263,12 +263,10 @@ TraceOptions::CreateTraceOptionsFile(
263263 int log_level = 0 ;
264264 int log_file_count;
265265 int log_file_size;
266- int max_threads;
267- bool logging_enabled = false ;
266+ int max_threads = 0 ;
268267 for (auto const & s : trace_sections) {
269268 if (s.first == kLogLevel && !s.second .empty ()) {
270269 log_level = std::strtol (s.second .c_str (), nullptr , 10 );
271- logging_enabled = (log_level > 0 );
272270 } else if (s.first == kLogPath ) {
273271 log_path = s.second ;
274272 } else if (s.first == kLogFileCount ) {
@@ -286,9 +284,8 @@ TraceOptions::CreateTraceOptionsFile(
286284 options_file_ = std::shared_ptr<TraceOptions>(new TraceOptions ());
287285 }
288286
289- if (log_level > 0 && logging_enabled ) {
287+ if (log_level > 0 ) {
290288 options_file_->log_level = log_level;
291- options_file_->logging_enabled = logging_enabled;
292289 options_file_->log_path = log_path;
293290 options_file_->max_file_count = log_file_count;
294291 options_file_->max_file_size = log_file_size;
Original file line number Diff line number Diff line change 3636
3737namespace google ::cloud::odbc_bq_driver_internal {
3838
39- std::string const kLogLevel = " LogLevel" ;
40- std::string const kLogPath = " LogPath" ;
41- std::string const kLogFileCount = " LogFileCount" ;
42- std::string const kLogFileSize = " LogFileSize" ;
43- std::string const kMaxThreadsParam = " MaxThreads" ;
39+ inline std::string const kLogLevel = " LogLevel" ;
40+ inline std::string const kLogPath = " LogPath" ;
41+ inline std::string const kLogFileCount = " LogFileCount" ;
42+ inline std::string const kLogFileSize = " LogFileSize" ;
43+ inline std::string const kMaxThreadsParam = " MaxThreads" ;
4444
4545// ///////////////////////////////////////////////////////////////////////////////
4646// TraceOptions facilitates ODBC tracing.
You can’t perform that action at this time.
0 commit comments