Ticket #8733: channelutil.logging.diff

File channelutil.logging.diff, 1019 bytes (added by robertm, 10 years ago)

Output last executed query in logging of channel scanner.

  • mythtv/libs/libmythtv/channelutil.cpp

     
    190190
    191191    query.prepare((mplex) ? updateStr : insertStr);
    192192
    193     VERBOSE(VB_CHANSCAN, "insert_dtv_multiplex -- "
    194             <<((mplex) ? "update" : "insert") << " " << mplex
    195             <<endl<<((mplex) ? updateStr : insertStr)<<endl);
    196 
    197193    query.bindValue(":SOURCEID",          db_source_id);
    198194    query.bindValue(":SISTANDARD",        sistandard);
    199195    query.bindValue(":FREQUENCY1",        QString::number(frequency));
     
    256252        MythDB::DBError("Adding transport to Database.", query);
    257253        return 0;
    258254    }
     255    else
     256        VERBOSE(VB_CHANSCAN, "insert_dtv_multiplex -- "
     257                <<((mplex) ? "update" : "insert") << " " << mplex
     258                <<endl<<(query.executedQuery())<<endl);
    259259
    260260    if (mplex)
    261261        return mplex;