1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-11 17:32:47 -05:00
This commit is contained in:
MoneroOcean
2020-06-10 18:14:06 -07:00
150 changed files with 12300 additions and 8764 deletions

View File

@@ -32,6 +32,7 @@
#include "backend/cpu/Cpu.h"
#include "base/io/Console.h"
#include "base/io/log/Log.h"
#include "base/io/log/Tags.h"
#include "base/io/Signals.h"
#include "base/kernel/Platform.h"
#include "core/config/Config.h"
@@ -85,7 +86,7 @@ int xmrig::App::exec()
Summary::print(m_controller);
if (m_controller->config()->isDryRun()) {
LOG_NOTICE("OK");
LOG_NOTICE("%s " WHITE_BOLD("OK"), Tags::config());
return 0;
}
@@ -109,7 +110,7 @@ int xmrig::App::exec()
void xmrig::App::onConsoleCommand(char command)
{
if (command == 3) {
LOG_WARN("Ctrl+C received, exiting");
LOG_WARN("%s " YELLOW("Ctrl+C received, exiting"), Tags::signal());
close();
}
else {
@@ -123,15 +124,15 @@ void xmrig::App::onSignal(int signum)
switch (signum)
{
case SIGHUP:
LOG_WARN("SIGHUP received, exiting");
LOG_WARN("%s " YELLOW("SIGHUP received, exiting"), Tags::signal());
break;
case SIGTERM:
LOG_WARN("SIGTERM received, exiting");
LOG_WARN("%s " YELLOW("SIGTERM received, exiting"), Tags::signal());
break;
case SIGINT:
LOG_WARN("SIGINT received, exiting");
LOG_WARN("%s " YELLOW("SIGINT received, exiting"), Tags::signal());
break;
default: