1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-12-18 13:54:11 +03:00

add SMLogging.

This commit is contained in:
Ben Thompson
2019-03-04 11:41:25 -06:00
parent 2619aa8983
commit b3f8a5ed47
18 changed files with 159 additions and 57 deletions

View File

@@ -1,6 +1,7 @@
#include "ReadTask.h"
#include "messageFormat.h"
#include "SMLogging.h"
#include <errno.h>
using namespace std;
@@ -27,6 +28,7 @@ ReadTask::~ReadTask()
bool ReadTask::run()
{
SMLogging* logger = SMLogging::get();
uint8_t buf[1024] = {0};
// get the parameters
@@ -41,7 +43,7 @@ bool ReadTask::run()
read_cmd *cmd = (read_cmd *) buf;
#ifdef SM_TRACE
syslog(LOG_DEBUG, "read %s count %i offset %i.",cmd->filename,cmd->count,cmd->offset);
logger->log(LOG_DEBUG,"read %s count %i offset %i.",cmd->filename,cmd->count,cmd->offset);
#endif
// read from IOC, write to the socket