Skip to content

Commit

Permalink
Report columns found by the TH in debug mode (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
nfbvs committed Feb 19, 2021
1 parent 65adcbe commit 63b5112
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/amplxl/src/ampl_xl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ void
ExcelManager::log_missing_column(int col){

std::string msg;
msg = "Could not find column ";
msg = "Could not find column \'";
msg += TI->colnames[col];
msg += " in spreadsheet table header";
msg += "\' in spreadsheet table header";
logger.log(msg, LOG_ERROR);
};

Expand Down Expand Up @@ -3989,10 +3989,12 @@ ExcelManager::parse_header(

xl_col_map[xl_col_name] = iter_col;

if (verbose == 73){
printf("Found column %s\n", xl_col_name.c_str());
if (verbose >= 3){
std::string msg = "Found column \'";
msg += xl_col_name;
msg += "\'";
logger.log(msg, LOG_DEBUG);
}

}
else{
//~ nempty += 1;
Expand Down

0 comments on commit 63b5112

Please sign in to comment.