mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
reduce the log messages with INFO level
This commit is contained in:
parent
5f24e4cec9
commit
fafd573b6a
@ -133,8 +133,6 @@ void ClassicComicsView::setToolBar(QToolBar *toolBar)
|
||||
|
||||
void ClassicComicsView::setModel(ComicModel *model)
|
||||
{
|
||||
QLOG_DEBUG() << "Setting model";
|
||||
|
||||
ComicsView::setModel(model);
|
||||
|
||||
if(model == NULL)
|
||||
@ -195,7 +193,6 @@ void ClassicComicsView::setModel(ComicModel *model)
|
||||
|
||||
void ClassicComicsView::setCurrentIndex(const QModelIndex &index)
|
||||
{
|
||||
QLOG_INFO() << "*******************************************************ClassicComicsView::setCurrentIndex";
|
||||
tableView->setCurrentIndex(index);
|
||||
centerComicFlow(index);
|
||||
}
|
||||
|
@ -21,7 +21,7 @@ void ComicsView::dragEnterEvent(QDragEnterEvent *event)
|
||||
event->acceptProposedAction();
|
||||
else
|
||||
{
|
||||
QLOG_INFO() << "dragEnterEvent";
|
||||
QLOG_TRACE() << "dragEnterEvent";
|
||||
QList<QUrl> urlList;
|
||||
|
||||
if (event->mimeData()->hasUrls() && event->dropAction() == Qt::CopyAction)
|
||||
|
@ -52,7 +52,7 @@ bool ComicModel::dropMimeData(const QMimeData *data, Qt::DropAction action, int
|
||||
{
|
||||
|
||||
QAbstractItemModel::dropMimeData(data,action,row,column,parent);
|
||||
QLOG_INFO() << ">>>>>>>>>>>>>>dropMimeData ComicModel<<<<<<<<<<<<<<<<<"<< parent << row << "," << column;
|
||||
QLOG_TRACE() << ">>>>>>>>>>>>>>dropMimeData ComicModel<<<<<<<<<<<<<<<<<"<< parent << row << "," << column;
|
||||
|
||||
if(!data->formats().contains(YACReader::YACReaderLibrarComiscSelectionMimeDataFormat))
|
||||
return false;
|
||||
@ -116,7 +116,7 @@ bool ComicModel::dropMimeData(const QMimeData *data, Qt::DropAction action, int
|
||||
}
|
||||
}
|
||||
|
||||
QLOG_INFO() << newSorting;
|
||||
QLOG_TRACE() << newSorting;
|
||||
|
||||
int tempRow = row;
|
||||
foreach(qulonglong id, comicIds)
|
||||
|
@ -532,7 +532,7 @@ void DBHelper::reasignOrderToComicsInReadingList(qulonglong readingListId, QList
|
||||
updateOrdering.bindValue(":comic_id", id);
|
||||
updateOrdering.bindValue(":reading_list_id", readingListId);
|
||||
updateOrdering.exec();
|
||||
QLOG_INFO() << updateOrdering.lastError().databaseText() << "-" << updateOrdering.lastError().driverText();
|
||||
QLOG_TRACE() << updateOrdering.lastError().databaseText() << "-" << updateOrdering.lastError().driverText();
|
||||
}
|
||||
|
||||
db.commit();
|
||||
|
@ -109,7 +109,7 @@ GridComicsView::GridComicsView(QWidget *parent) :
|
||||
l->setContentsMargins(0,0,0,0);
|
||||
l->setSpacing(0);
|
||||
|
||||
QLOG_INFO() << "GridComicsView";
|
||||
QLOG_TRACE() << "GridComicsView";
|
||||
}
|
||||
|
||||
GridComicsView::~GridComicsView()
|
||||
|
@ -279,7 +279,7 @@ void LibraryCreator::create(QDir dir)
|
||||
#endif
|
||||
if(fileInfo.isDir())
|
||||
{
|
||||
QLOG_INFO() << "Parsing folder" << fileInfo.canonicalPath() ;
|
||||
QLOG_TRACE() << "Parsing folder" << fileInfo.canonicalPath() ;
|
||||
//se añade al path actual el folder, aún no se sabe si habrá que añadirlo a la base de datos
|
||||
_currentPathFolders.append(Folder(fileInfo.fileName(),relativePath));
|
||||
create(QDir(fileInfo.absoluteFilePath()));
|
||||
@ -288,7 +288,7 @@ void LibraryCreator::create(QDir dir)
|
||||
}
|
||||
else
|
||||
{
|
||||
QLOG_INFO() << "Parsing file" << fileInfo.filePath();
|
||||
QLOG_TRACE() << "Parsing file" << fileInfo.filePath();
|
||||
insertComic(relativePath,fileInfo);
|
||||
}
|
||||
}
|
||||
|
@ -2535,7 +2535,7 @@ QModelIndexList LibraryWindow::getSelectedComics()
|
||||
//se fuerza a que haya almenos una fila seleccionada TODO comprobar se se puede forzar a la tabla a que lo haga automáticamente
|
||||
//avoid selection.count()==0 forcing selection in comicsView
|
||||
QModelIndexList selection = comicsView->selectionModel()->selectedRows();
|
||||
QLOG_INFO() << "selection count " << selection.length();
|
||||
QLOG_TRACE() << "selection count " << selection.length();
|
||||
qSort(selection.begin(),selection.end(),lessThanModelIndexRow);
|
||||
|
||||
if(selection.count()==0)
|
||||
@ -2574,9 +2574,9 @@ void LibraryWindow::deleteComicsFromDisk()
|
||||
foreach(ComicDB comic, comics)
|
||||
{
|
||||
paths.append(libraryPath + comic.path);
|
||||
QLOG_INFO() << comic.path;
|
||||
QLOG_INFO() << comic.id;
|
||||
QLOG_INFO() << comic.parentId;
|
||||
QLOG_TRACE() << comic.path;
|
||||
QLOG_TRACE() << comic.id;
|
||||
QLOG_TRACE() << comic.parentId;
|
||||
}
|
||||
|
||||
ComicsRemover * remover = new ComicsRemover(indexList,paths);
|
||||
|
@ -69,13 +69,13 @@ void ComicController::service(HttpRequest& request, HttpResponse& response)
|
||||
|
||||
if(remoteComic)
|
||||
{
|
||||
QLOG_INFO() << "remote comic requested";
|
||||
QLOG_TRACE() << "remote comic requested";
|
||||
session.setCurrentRemoteComic(comic.id, comicFile);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
QLOG_INFO() << "comic requested";
|
||||
QLOG_TRACE() << "comic requested";
|
||||
session.setCurrentComic(comic.id, comicFile);
|
||||
}
|
||||
|
||||
|
@ -34,13 +34,13 @@ void PageController::service(HttpRequest& request, HttpResponse& response)
|
||||
qulonglong currentComicId;
|
||||
if(remote)
|
||||
{
|
||||
QLOG_INFO() << "se recupera comic remoto para servir páginas";
|
||||
QLOG_TRACE() << "se recupera comic remoto para servir páginas";
|
||||
comicFile = session.getCurrentRemoteComic();
|
||||
currentComicId = session.getCurrentRemoteComicId();
|
||||
}
|
||||
else
|
||||
{
|
||||
QLOG_INFO() << "se recupera comic para servir páginas";
|
||||
QLOG_TRACE() << "se recupera comic para servir páginas";
|
||||
comicFile = session.getCurrentComic();
|
||||
currentComicId = session.getCurrentComicId();
|
||||
}
|
||||
|
@ -15,7 +15,7 @@ void SyncController::service(HttpRequest &request, HttpResponse &response)
|
||||
{
|
||||
QString postData = QString::fromUtf8(request.getBody());
|
||||
|
||||
QLOG_INFO() << "POST DATA: " << postData;
|
||||
QLOG_TRACE() << "POST DATA: " << postData;
|
||||
|
||||
if(postData.length()>0) {
|
||||
QList<QString> data = postData.split("\n");
|
||||
|
@ -25,7 +25,7 @@ void UpdateComicController::service(HttpRequest &request, HttpResponse &response
|
||||
|
||||
QString postData = QString::fromUtf8(request.getBody());
|
||||
|
||||
QLOG_INFO() << "POST DATA: " << postData;
|
||||
QLOG_TRACE() << "POST DATA: " << postData;
|
||||
|
||||
if(postData.length()>0) {
|
||||
QList<QString> data = postData.split("\n");
|
||||
|
@ -53,7 +53,7 @@ void YACReaderLocalServer::sendResponse()
|
||||
worker->start();
|
||||
}
|
||||
|
||||
QLOG_INFO() << "connection incoming";
|
||||
QLOG_TRACE() << "connection incoming";
|
||||
//clientConnection->waitForBytesWritten();*/
|
||||
//clientConnection->disconnectFromServer();
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ YACReaderSearchLineEdit::YACReaderSearchLineEdit(QWidget *parent)
|
||||
|
||||
regExpString = regExpString + "[^\\[].*";
|
||||
|
||||
QLOG_INFO () << regExpString;
|
||||
QLOG_TRACE () << regExpString;
|
||||
|
||||
QRegExp regExp(regExpString);
|
||||
QValidator *validator = new QRegExpValidator(regExp, this);
|
||||
@ -127,7 +127,7 @@ void YACReaderSearchLineEdit::processText(const QString &text)
|
||||
int indexOfModifier = modifiers.indexOf(modifier);
|
||||
if(indexOfModifier != -1)
|
||||
{
|
||||
QLOG_INFO() << "modifier : " << modifier << "text : " << searchText;
|
||||
QLOG_TRACE() << "modifier : " << modifier << "text : " << searchText;
|
||||
emit filterChanged(static_cast<YACReader::SearchModifiers>(indexOfModifier+1), searchText); //TODO, do not use on indexOF
|
||||
}
|
||||
else
|
||||
@ -136,11 +136,11 @@ void YACReaderSearchLineEdit::processText(const QString &text)
|
||||
}
|
||||
}
|
||||
|
||||
QLOG_INFO() << "full text :" << text << " : " << regExp.indexIn(text);
|
||||
QLOG_TRACE() << "full text :" << text << " : " << regExp.indexIn(text);
|
||||
}
|
||||
else
|
||||
{
|
||||
QLOG_INFO() << "NoModifiers : " << text;
|
||||
QLOG_TRACE() << "NoModifiers : " << text;
|
||||
emit filterChanged(YACReader::NoModifiers,text);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user