mirror of
https://github.com/wassname/ray.git
synced 2026-08-04 13:14:14 +08:00
Second Part of Internal API Refactor (#1326)
This commit is contained in:
committed by
Robert Nishihara
parent
4bb5b6bd5b
commit
3d224c4edf
@@ -50,7 +50,7 @@ void RayLogger_log(RayLogger *logger,
|
||||
if (log_level < logger->log_level) {
|
||||
return;
|
||||
}
|
||||
if (log_level < RAY_DEBUG || log_level > RAY_FATAL) {
|
||||
if (log_level < RAY_LOG_DEBUG || log_level > RAY_LOG_FATAL) {
|
||||
return;
|
||||
}
|
||||
struct timeval tv;
|
||||
@@ -79,7 +79,7 @@ void RayLogger_log(RayLogger *logger,
|
||||
|
||||
int status =
|
||||
redisAsyncCommand(context, NULL, NULL, formatted_message,
|
||||
(char *) db->client.id, sizeof(db->client.id));
|
||||
(char *) db->client.data(), sizeof(db->client));
|
||||
if ((status == REDIS_ERR) || context->err) {
|
||||
LOG_REDIS_DEBUG(context, "error while logging message to log table");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user