Skip to content

Commit

Permalink
fix(ci): fixed ci test with fallback log level
Browse files Browse the repository at this point in the history
Signed-off-by: Logan Nguyen <[email protected]>
  • Loading branch information
quiet-node committed Feb 5, 2025
1 parent f99771a commit dd09502
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 23 deletions.
21 changes: 11 additions & 10 deletions packages/server/src/server.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
/*-
*
* Hedera JSON RPC Relay
*
* Copyright (C) 2022-2024 Hedera Hashgraph, LLC
* Copyright (C) 2025 Hedera Hashgraph, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -18,22 +18,23 @@
*
*/

import { JsonRpcError, MirrorNodeClientError, predefined, Relay, RelayImpl } from '@hashgraph/json-rpc-relay/dist';
import { ConfigService } from '@hashgraph/json-rpc-config-service/dist/services';
import { JsonRpcError, MirrorNodeClientError, predefined, Relay, RelayImpl } from '@hashgraph/json-rpc-relay/dist';
import { ITracerConfig, RequestDetails } from '@hashgraph/json-rpc-relay/src/lib/types';
import { collectDefaultMetrics, Histogram, Registry } from 'prom-client';
import KoaJsonRpc from './koaJsonRpc';
import { TracerType, TYPES, Validator } from './validator';
import pino from 'pino';
import path from 'path';
import fs from 'fs';
import cors from 'koa-cors';
import path from 'path';
import pino from 'pino';
import { collectDefaultMetrics, Histogram, Registry } from 'prom-client';
import { v4 as uuid } from 'uuid';

import { formatRequestIdMessage } from './formatters';
import cors from 'koa-cors';
import KoaJsonRpc from './koaJsonRpc';
import { TracerType, TYPES, Validator } from './validator';

const mainLogger = pino({
name: 'hedera-json-rpc-relay',
level: ConfigService.get('LOG_LEVEL'),
level: ConfigService.get('LOG_LEVEL') || 'trace',
transport: {
target: 'pino-pretty',
options: {
Expand Down
27 changes: 14 additions & 13 deletions packages/ws-server/src/webSocketServer.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* -
/*-
*
* Hedera JSON RPC Relay
*
* Copyright (C) 2022-2024 Hedera Hashgraph, LLC
* Copyright (C) 2025 Hedera Hashgraph, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -18,26 +18,27 @@
*
*/

import { ConfigService } from '@hashgraph/json-rpc-config-service/dist/services';
import { JsonRpcError, predefined, Relay, RelayImpl } from '@hashgraph/json-rpc-relay/dist';
import { RequestDetails } from '@hashgraph/json-rpc-relay/dist/lib/types';
import KoaJsonRpc from '@hashgraph/json-rpc-server/dist/koaJsonRpc';
import { IJsonRpcRequest } from '@hashgraph/json-rpc-server/dist/koaJsonRpc/lib/IJsonRpcRequest';
import jsonResp from '@hashgraph/json-rpc-server/dist/koaJsonRpc/lib/RpcResponse';
import Koa from 'koa';
import pino from 'pino';
import { v4 as uuid } from 'uuid';
import websockify from 'koa-websocket';
import pino from 'pino';
import { collectDefaultMetrics, Registry } from 'prom-client';
import { v4 as uuid } from 'uuid';

import { getRequestResult } from './controllers';
import { WS_CONSTANTS } from './utils/constants';
import WsMetricRegistry from './metrics/wsMetricRegistry';
import ConnectionLimiter from './metrics/connectionLimiter';
import KoaJsonRpc from '@hashgraph/json-rpc-server/dist/koaJsonRpc';
import jsonResp from '@hashgraph/json-rpc-server/dist/koaJsonRpc/lib/RpcResponse';
import { JsonRpcError, predefined, Relay, RelayImpl } from '@hashgraph/json-rpc-relay/dist';
import WsMetricRegistry from './metrics/wsMetricRegistry';
import { WS_CONSTANTS } from './utils/constants';
import { getBatchRequestsMaxSize, getWsBatchRequestsEnabled, handleConnectionClose, sendToClient } from './utils/utils';
import { ConfigService } from '@hashgraph/json-rpc-config-service/dist/services';
import { IJsonRpcRequest } from '@hashgraph/json-rpc-server/dist/koaJsonRpc/lib/IJsonRpcRequest';
import { RequestDetails } from '@hashgraph/json-rpc-relay/dist/lib/types';

const mainLogger = pino({
name: 'hedera-json-rpc-relay',
level: ConfigService.get('LOG_LEVEL'),
level: ConfigService.get('LOG_LEVEL') || 'trace',
transport: {
target: 'pino-pretty',
options: {
Expand Down

0 comments on commit dd09502

Please sign in to comment.