Init logging with yeclite

This commit is contained in:
Arjun
2019-11-15 10:31:50 -08:00
committed by Aditya Kulkarni
parent add46f9960
commit 6520a09e6d
4 changed files with 13 additions and 2 deletions

View File

@@ -169,6 +169,8 @@ void Controller::getInfoThenRefresh(bool force) {
bool doUpdate = force || (model->getLatestBlock() != curBlock);
model->setLatestBlock(curBlock);
main->logger->write(QString("Refresh. curblock ") % QString::number(curBlock) % ", update=" % (doUpdate ? "true" : "false") );
// Connected, so display checkmark.
auto tooltip = Settings::getInstance()->getSettings().server + "\n" +
QString::fromStdString(zrpc->getConnection()->getInfo().dump());

View File

@@ -99,7 +99,7 @@ public:
static const QString labelRegExp;
static const int updateSpeed = 60 * 1000; // 60 sec
static const int updateSpeed = 30 * 1000; // 30 sec
static const int priceRefreshSpeed = 60 * 60 * 1000; // 1 hr
private: