From be481ce641fc942e96fce76737c8710bd4034fe6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ben=20Gr=C3=A4f?= Date: Wed, 25 Jul 2018 16:36:29 +0200 Subject: [PATCH 1/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 315e74b7..3bf47993 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ Check the [Coin Configuration](https://github.com/Bendr0id/xmrigCC/wiki/Coin-con **XMRigCC Dashboard** -![Screenshot of XMRigCC Dashboard](https://i.imgur.com/VwJaf26.png) +![Screenshot of XMRigCC Dashboard](https://i.imgur.com/EciC0gW.png) #### Table of contents From 54c9696ee55d5e615eec98b84d712918ce7b1822 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ben=20Gr=C3=A4f?= Date: Wed, 25 Jul 2018 16:38:26 +0200 Subject: [PATCH 2/6] Update README.md --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 3bf47993..0216c4d3 100644 --- a/README.md +++ b/README.md @@ -71,7 +71,6 @@ Check the [Coin Configuration](https://github.com/Bendr0id/xmrigCC/wiki/Coin-con ![Screenshot of XMRigCC Dashboard](https://i.imgur.com/EciC0gW.png) - #### Table of contents * [Download](#download) * [Wiki/Building/Howto](https://github.com/Bendr0id/xmrigCC/wiki/) From 0beae26bc6ef99425516d43305a91a5be7da1787 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ben=20Gr=C3=A4f?= Date: Wed, 25 Jul 2018 16:39:38 +0200 Subject: [PATCH 3/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0216c4d3..d808b22a 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ Check the [Coin Configuration](https://github.com/Bendr0id/xmrigCC/wiki/Coin-con **XMRigCC Dashboard** -![Screenshot of XMRigCC Dashboard](https://i.imgur.com/EciC0gW.png) +![Screenshot of XMRigCC Dashboard](https://i.imgur.com/EciC0gW) #### Table of contents * [Download](#download) From d12c9863fad20ed70fce05e375d6180a33b23bc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ben=20Gr=C3=A4f?= Date: Wed, 25 Jul 2018 16:39:54 +0200 Subject: [PATCH 4/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d808b22a..0216c4d3 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ Check the [Coin Configuration](https://github.com/Bendr0id/xmrigCC/wiki/Coin-con **XMRigCC Dashboard** -![Screenshot of XMRigCC Dashboard](https://i.imgur.com/EciC0gW) +![Screenshot of XMRigCC Dashboard](https://i.imgur.com/EciC0gW.png) #### Table of contents * [Download](#download) From 5e8e6a521a4be96f859e594fca4e2599cd83ee6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ben=20Gr=C3=A4f?= Date: Wed, 25 Jul 2018 16:42:40 +0200 Subject: [PATCH 5/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0216c4d3..cacc5bc9 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ Check the [Coin Configuration](https://github.com/Bendr0id/xmrigCC/wiki/Coin-con **XMRigCC Dashboard** -![Screenshot of XMRigCC Dashboard](https://i.imgur.com/EciC0gW.png) +![Screenshot of XMRigCC Dashboard](https://imgur.com/UrdTHpM.png) #### Table of contents * [Download](#download) From 9380880b587b3f57681ef6fc38b7e7b6ac22065b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ben=20Gr=C3=A4f?= Date: Fri, 27 Jul 2018 21:21:33 +0200 Subject: [PATCH 6/6] Fix getClientLogs function and log viewer on dashboard --- index.html | 8 ++++---- src/cc/Service.cpp | 5 ++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/index.html b/index.html index 934a6d3f..29ebd37d 100644 --- a/index.html +++ b/index.html @@ -416,10 +416,10 @@ type: "GET", url: "/admin/getClientLog?clientId=" + clientId, dataType:"json", - success: function(jsonClientLog) { + success: function(data) { var htmlContent = "
" + ""+ - "" + + "" + "
"; $('#minerLog').find('.modal-body').html(htmlContent); @@ -442,8 +442,8 @@ type: "GET", url: "/admin/getClientLog?clientId=" + clientId, dataType:"json", - success: function(jsonClientLog) { - $('#log').val(JSON.stringify(jsonClientLog,undefined, 2)); + success: function(data) { + $('#log').val(data.client_log); }, error: function (data) { setError('Unable to fetch ' + clientId + ' log. - Please make sure it is enabled on the miner!'); diff --git a/src/cc/Service.cpp b/src/cc/Service.cpp index 6c9e317b..a12d44be 100644 --- a/src/cc/Service.cpp +++ b/src/cc/Service.cpp @@ -288,9 +288,8 @@ unsigned Service::getClientLog(const std::string& clientId, std::string& resp) data << m_row.c_str() << std::endl; } - LOG_INFO("LOG: %s", data.str().c_str()); - - respDocument.AddMember("client_log", rapidjson::StringRef(data.str().c_str()), allocator); + std::string log = data.str(); + respDocument.AddMember("client_log", rapidjson::StringRef(log.c_str()), allocator); rapidjson::StringBuffer buffer(0, 4096); rapidjson::Writer writer(buffer);