Skip to content

Commit

Permalink
Back the logger with a QFile
Browse files Browse the repository at this point in the history
Previously all messages were written to a string which grew unbounded
when logging was disabled.
  • Loading branch information
mhoran authored and youpy committed Jul 22, 2014
1 parent 2757305 commit d13062a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/WebPageManager.cpp
Expand Up @@ -7,7 +7,7 @@ WebPageManager::WebPageManager(QObject *parent) : QObject(parent) {
m_cookieJar = new NetworkCookieJar(this);
m_success = true;
m_loggingEnabled = false;
m_ignoredOutput = new QString();
m_ignoredOutput = new QFile(this);
m_timeout = -1;
createPage(this)->setFocus();
}
Expand Down
2 changes: 1 addition & 1 deletion src/WebPageManager.h
Expand Up @@ -52,7 +52,7 @@ class WebPageManager : public QObject {
QSet<WebPage *> m_started;
bool m_success;
bool m_loggingEnabled;
QString *m_ignoredOutput;
QFile *m_ignoredOutput;
int m_timeout;
};

Expand Down

0 comments on commit d13062a

Please sign in to comment.