mirror of
https://github.com/akuker/RASCSI.git
synced 2025-01-02 09:35:58 +00:00
Updated logging
This commit is contained in:
parent
594976e92d
commit
e628bf9632
@ -1351,6 +1351,8 @@ static void *MonThread(void *param)
|
|||||||
|
|
||||||
switch(command.operation()) {
|
switch(command.operation()) {
|
||||||
case LOG_LEVEL: {
|
case LOG_LEVEL: {
|
||||||
|
LOGTRACE(string("Received " + PbOperation_Name(LOG_LEVEL) + " command").c_str());
|
||||||
|
|
||||||
string log_level = command.params_size() > 0 ? command.params().Get(0) : "";
|
string log_level = command.params_size() > 0 ? command.params().Get(0) : "";
|
||||||
bool status = SetLogLevel(log_level);
|
bool status = SetLogLevel(log_level);
|
||||||
if (!status) {
|
if (!status) {
|
||||||
@ -1363,6 +1365,8 @@ static void *MonThread(void *param)
|
|||||||
}
|
}
|
||||||
|
|
||||||
case DEFAULT_FOLDER: {
|
case DEFAULT_FOLDER: {
|
||||||
|
LOGTRACE(string("Received " + PbOperation_Name(DEFAULT_FOLDER) + " command").c_str());
|
||||||
|
|
||||||
string folder = command.params_size() > 0 ? command.params().Get(0) : "";
|
string folder = command.params_size() > 0 ? command.params().Get(0) : "";
|
||||||
if (folder.empty()) {
|
if (folder.empty()) {
|
||||||
ReturnStatus(fd, false, "Can't set default image folder: Missing folder name");
|
ReturnStatus(fd, false, "Can't set default image folder: Missing folder name");
|
||||||
@ -1378,6 +1382,8 @@ static void *MonThread(void *param)
|
|||||||
}
|
}
|
||||||
|
|
||||||
case DEVICE_INFO: {
|
case DEVICE_INFO: {
|
||||||
|
LOGTRACE(string("Received " + PbOperation_Name(DEVICE_INFO) + " command").c_str());
|
||||||
|
|
||||||
PbResult result;
|
PbResult result;
|
||||||
result.set_status(true);
|
result.set_status(true);
|
||||||
GetDeviceInfo(command, result);
|
GetDeviceInfo(command, result);
|
||||||
@ -1392,6 +1398,8 @@ static void *MonThread(void *param)
|
|||||||
}
|
}
|
||||||
|
|
||||||
case SERVER_INFO: {
|
case SERVER_INFO: {
|
||||||
|
LOGTRACE(string("Received " + PbOperation_Name(SERVER_INFO) + " command").c_str());
|
||||||
|
|
||||||
PbResult result;
|
PbResult result;
|
||||||
result.set_status(true);
|
result.set_status(true);
|
||||||
GetServerInfo(result);
|
GetServerInfo(result);
|
||||||
|
Loading…
Reference in New Issue
Block a user