Skip to content

Commit

Permalink
Merge pull request #176 from dappradar/delay_setting
Browse files Browse the repository at this point in the history
Delay setting
  • Loading branch information
Sonmezturk authored Jul 25, 2023
2 parents 7ff4d6b + ee3a849 commit a808ade
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion kubernetes/production/patch-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ kind: Deployment
metadata:
name: defi-providers
spec:
replicas: 3
replicas: 2
2 changes: 1 addition & 1 deletion kubernetes/staging/patch-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ kind: Deployment
metadata:
name: defi-providers
spec:
replicas: 1
replicas: 2
2 changes: 1 addition & 1 deletion src/util/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const data = {
CHAINS: {
ethereum: {
prefix: '',
delay: 600,
delay: 800,
},
bsc: {
prefix: 'bsc_',
Expand Down
4 changes: 3 additions & 1 deletion src/util/logger/appenders/logstashAppender.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'dotenv/config.js';
import { config } from '../../../app.config';
import dgram from 'dgram';
import { logger } from 'ethers';
import os from 'os';
const client = dgram.createSocket('udp4');

interface ILoggingEvent {
Expand All @@ -25,6 +25,7 @@ interface ILogstashMessage {
Stack: string;
Detail: string;
Endpoint: string;
Host: string;
Level: string;
}
const { LOGSTASH_HOST, LOGSTASH_PORT, LOGSTASH_INDEX } = config;
Expand All @@ -46,6 +47,7 @@ function generatePayload(loggingEvent: ILoggingEvent): ILogstashMessage {
Stack: stack,
Detail: detail,
Endpoint: endpoint,
Host: os.hostname(),
Level: loggingEvent.level.levelStr,
};
}
Expand Down

0 comments on commit a808ade

Please sign in to comment.