diff --git a/source/logger.c b/source/logger.c index a9e6a4a4..6909ac5f 100644 --- a/source/logger.c +++ b/source/logger.c @@ -263,7 +263,7 @@ void s_threadsafe_log_create(struct aws_napi_logger_ctx *ctx, napi_env env) { /* process._rawDebug is specific to NodeJS and may not exist in other environments like Deno, fall back to console.error */ - if (rawdebug_type == napi_undefined) { + //if (rawdebug_type == napi_undefined) { napi_value node_console = NULL; AWS_NAPI_ENSURE(env, napi_get_named_property(env, node_global, "console", &node_console)); @@ -271,7 +271,7 @@ void s_threadsafe_log_create(struct aws_napi_logger_ctx *ctx, napi_env env) { AWS_NAPI_ENSURE(env, napi_get_named_property(env, node_console, "error", &node_error)); node_rawdebug = node_error; - } + //} napi_value resource_name = NULL; AWS_NAPI_ENSURE(env, napi_create_string_utf8(env, "aws_logger", 10, &resource_name));