mirror of
https://github.com/YACReader/yacreader
synced 2025-06-03 17:18:23 -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)
|
void ClassicComicsView::setModel(ComicModel *model)
|
||||||
{
|
{
|
||||||
QLOG_DEBUG() << "Setting model";
|
|
||||||
|
|
||||||
ComicsView::setModel(model);
|
ComicsView::setModel(model);
|
||||||
|
|
||||||
if(model == NULL)
|
if(model == NULL)
|
||||||
@ -195,7 +193,6 @@ void ClassicComicsView::setModel(ComicModel *model)
|
|||||||
|
|
||||||
void ClassicComicsView::setCurrentIndex(const QModelIndex &index)
|
void ClassicComicsView::setCurrentIndex(const QModelIndex &index)
|
||||||
{
|
{
|
||||||
QLOG_INFO() << "*******************************************************ClassicComicsView::setCurrentIndex";
|
|
||||||
tableView->setCurrentIndex(index);
|
tableView->setCurrentIndex(index);
|
||||||
centerComicFlow(index);
|
centerComicFlow(index);
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,7 @@ void ComicsView::dragEnterEvent(QDragEnterEvent *event)
|
|||||||
event->acceptProposedAction();
|
event->acceptProposedAction();
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
QLOG_INFO() << "dragEnterEvent";
|
QLOG_TRACE() << "dragEnterEvent";
|
||||||
QList<QUrl> urlList;
|
QList<QUrl> urlList;
|
||||||
|
|
||||||
if (event->mimeData()->hasUrls() && event->dropAction() == Qt::CopyAction)
|
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);
|
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))
|
if(!data->formats().contains(YACReader::YACReaderLibrarComiscSelectionMimeDataFormat))
|
||||||
return false;
|
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;
|
int tempRow = row;
|
||||||
foreach(qulonglong id, comicIds)
|
foreach(qulonglong id, comicIds)
|
||||||
|
@ -532,7 +532,7 @@ void DBHelper::reasignOrderToComicsInReadingList(qulonglong readingListId, QList
|
|||||||
updateOrdering.bindValue(":comic_id", id);
|
updateOrdering.bindValue(":comic_id", id);
|
||||||
updateOrdering.bindValue(":reading_list_id", readingListId);
|
updateOrdering.bindValue(":reading_list_id", readingListId);
|
||||||
updateOrdering.exec();
|
updateOrdering.exec();
|
||||||
QLOG_INFO() << updateOrdering.lastError().databaseText() << "-" << updateOrdering.lastError().driverText();
|
QLOG_TRACE() << updateOrdering.lastError().databaseText() << "-" << updateOrdering.lastError().driverText();
|
||||||
}
|
}
|
||||||
|
|
||||||
db.commit();
|
db.commit();
|
||||||
|
@ -109,7 +109,7 @@ GridComicsView::GridComicsView(QWidget *parent) :
|
|||||||
l->setContentsMargins(0,0,0,0);
|
l->setContentsMargins(0,0,0,0);
|
||||||
l->setSpacing(0);
|
l->setSpacing(0);
|
||||||
|
|
||||||
QLOG_INFO() << "GridComicsView";
|
QLOG_TRACE() << "GridComicsView";
|
||||||
}
|
}
|
||||||
|
|
||||||
GridComicsView::~GridComicsView()
|
GridComicsView::~GridComicsView()
|
||||||
|
@ -279,7 +279,7 @@ void LibraryCreator::create(QDir dir)
|
|||||||
#endif
|
#endif
|
||||||
if(fileInfo.isDir())
|
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
|
//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));
|
_currentPathFolders.append(Folder(fileInfo.fileName(),relativePath));
|
||||||
create(QDir(fileInfo.absoluteFilePath()));
|
create(QDir(fileInfo.absoluteFilePath()));
|
||||||
@ -288,7 +288,7 @@ void LibraryCreator::create(QDir dir)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
QLOG_INFO() << "Parsing file" << fileInfo.filePath();
|
QLOG_TRACE() << "Parsing file" << fileInfo.filePath();
|
||||||
insertComic(relativePath,fileInfo);
|
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
|
//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
|
//avoid selection.count()==0 forcing selection in comicsView
|
||||||
QModelIndexList selection = comicsView->selectionModel()->selectedRows();
|
QModelIndexList selection = comicsView->selectionModel()->selectedRows();
|
||||||
QLOG_INFO() << "selection count " << selection.length();
|
QLOG_TRACE() << "selection count " << selection.length();
|
||||||
qSort(selection.begin(),selection.end(),lessThanModelIndexRow);
|
qSort(selection.begin(),selection.end(),lessThanModelIndexRow);
|
||||||
|
|
||||||
if(selection.count()==0)
|
if(selection.count()==0)
|
||||||
@ -2574,9 +2574,9 @@ void LibraryWindow::deleteComicsFromDisk()
|
|||||||
foreach(ComicDB comic, comics)
|
foreach(ComicDB comic, comics)
|
||||||
{
|
{
|
||||||
paths.append(libraryPath + comic.path);
|
paths.append(libraryPath + comic.path);
|
||||||
QLOG_INFO() << comic.path;
|
QLOG_TRACE() << comic.path;
|
||||||
QLOG_INFO() << comic.id;
|
QLOG_TRACE() << comic.id;
|
||||||
QLOG_INFO() << comic.parentId;
|
QLOG_TRACE() << comic.parentId;
|
||||||
}
|
}
|
||||||
|
|
||||||
ComicsRemover * remover = new ComicsRemover(indexList,paths);
|
ComicsRemover * remover = new ComicsRemover(indexList,paths);
|
||||||
|
@ -69,13 +69,13 @@ void ComicController::service(HttpRequest& request, HttpResponse& response)
|
|||||||
|
|
||||||
if(remoteComic)
|
if(remoteComic)
|
||||||
{
|
{
|
||||||
QLOG_INFO() << "remote comic requested";
|
QLOG_TRACE() << "remote comic requested";
|
||||||
session.setCurrentRemoteComic(comic.id, comicFile);
|
session.setCurrentRemoteComic(comic.id, comicFile);
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
QLOG_INFO() << "comic requested";
|
QLOG_TRACE() << "comic requested";
|
||||||
session.setCurrentComic(comic.id, comicFile);
|
session.setCurrentComic(comic.id, comicFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -34,13 +34,13 @@ void PageController::service(HttpRequest& request, HttpResponse& response)
|
|||||||
qulonglong currentComicId;
|
qulonglong currentComicId;
|
||||||
if(remote)
|
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();
|
comicFile = session.getCurrentRemoteComic();
|
||||||
currentComicId = session.getCurrentRemoteComicId();
|
currentComicId = session.getCurrentRemoteComicId();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
QLOG_INFO() << "se recupera comic para servir páginas";
|
QLOG_TRACE() << "se recupera comic para servir páginas";
|
||||||
comicFile = session.getCurrentComic();
|
comicFile = session.getCurrentComic();
|
||||||
currentComicId = session.getCurrentComicId();
|
currentComicId = session.getCurrentComicId();
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,7 @@ void SyncController::service(HttpRequest &request, HttpResponse &response)
|
|||||||
{
|
{
|
||||||
QString postData = QString::fromUtf8(request.getBody());
|
QString postData = QString::fromUtf8(request.getBody());
|
||||||
|
|
||||||
QLOG_INFO() << "POST DATA: " << postData;
|
QLOG_TRACE() << "POST DATA: " << postData;
|
||||||
|
|
||||||
if(postData.length()>0) {
|
if(postData.length()>0) {
|
||||||
QList<QString> data = postData.split("\n");
|
QList<QString> data = postData.split("\n");
|
||||||
|
@ -25,7 +25,7 @@ void UpdateComicController::service(HttpRequest &request, HttpResponse &response
|
|||||||
|
|
||||||
QString postData = QString::fromUtf8(request.getBody());
|
QString postData = QString::fromUtf8(request.getBody());
|
||||||
|
|
||||||
QLOG_INFO() << "POST DATA: " << postData;
|
QLOG_TRACE() << "POST DATA: " << postData;
|
||||||
|
|
||||||
if(postData.length()>0) {
|
if(postData.length()>0) {
|
||||||
QList<QString> data = postData.split("\n");
|
QList<QString> data = postData.split("\n");
|
||||||
|
@ -53,7 +53,7 @@ void YACReaderLocalServer::sendResponse()
|
|||||||
worker->start();
|
worker->start();
|
||||||
}
|
}
|
||||||
|
|
||||||
QLOG_INFO() << "connection incoming";
|
QLOG_TRACE() << "connection incoming";
|
||||||
//clientConnection->waitForBytesWritten();*/
|
//clientConnection->waitForBytesWritten();*/
|
||||||
//clientConnection->disconnectFromServer();
|
//clientConnection->disconnectFromServer();
|
||||||
}
|
}
|
||||||
|
@ -59,7 +59,7 @@ YACReaderSearchLineEdit::YACReaderSearchLineEdit(QWidget *parent)
|
|||||||
|
|
||||||
regExpString = regExpString + "[^\\[].*";
|
regExpString = regExpString + "[^\\[].*";
|
||||||
|
|
||||||
QLOG_INFO () << regExpString;
|
QLOG_TRACE () << regExpString;
|
||||||
|
|
||||||
QRegExp regExp(regExpString);
|
QRegExp regExp(regExpString);
|
||||||
QValidator *validator = new QRegExpValidator(regExp, this);
|
QValidator *validator = new QRegExpValidator(regExp, this);
|
||||||
@ -127,7 +127,7 @@ void YACReaderSearchLineEdit::processText(const QString &text)
|
|||||||
int indexOfModifier = modifiers.indexOf(modifier);
|
int indexOfModifier = modifiers.indexOf(modifier);
|
||||||
if(indexOfModifier != -1)
|
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
|
emit filterChanged(static_cast<YACReader::SearchModifiers>(indexOfModifier+1), searchText); //TODO, do not use on indexOF
|
||||||
}
|
}
|
||||||
else
|
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
|
else
|
||||||
{
|
{
|
||||||
QLOG_INFO() << "NoModifiers : " << text;
|
QLOG_TRACE() << "NoModifiers : " << text;
|
||||||
emit filterChanged(YACReader::NoModifiers,text);
|
emit filterChanged(YACReader::NoModifiers,text);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user