-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62 from boostcampwm-2024/be-feat#57
[BE] 로그 로직 변경 및 clickhouse 설정 변경
- Loading branch information
Showing
23 changed files
with
225 additions
and
677 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
backend/proxy-server/src/database/clickhouse/clickhouse-database.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 7 additions & 15 deletions
22
backend/proxy-server/src/database/clickhouse/config/clickhouse.config.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,8 @@ | ||
export const clickhouseConfig = { | ||
url: process.env.CLICKHOUSE_URL || 'http://localhost', | ||
port: Number(process.env.CLICKHOUSE_PORT) || 8123, | ||
debug: false, | ||
basicAuth: process.env.CLICKHOUSE_AUTH | ||
? { | ||
username: process.env.CLICKHOUSE_USERNAME || 'default', | ||
password: process.env.CLICKHOUSE_PASSWORD || '', | ||
} | ||
: null, | ||
format: 'json', | ||
config: { | ||
session_timeout: 60, | ||
database: process.env.CLICKHOUSE_DATABASE, | ||
}, | ||
import { ClickHouseClientConfigOptions } from '@clickhouse/client'; | ||
|
||
export const clickhouseConfig: ClickHouseClientConfigOptions = { | ||
url: process.env.CLICKHOUSE_URL || 'http://localhost:8123', | ||
username: process.env.CLICKHOUSE_USERNAME || 'default', | ||
password: process.env.CLICKHOUSE_PASSWORD || '', | ||
database: process.env.CLICKHOUSE_DATABASE, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...ver/src/domain/log/response-log.entity.ts → ...-server/src/domain/log/http-log.entity.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
import { RequestLogEntity } from './request-log.entity'; | ||
import { ResponseLogEntity } from './response-log.entity'; | ||
import type { HttpLogEntity } from './http-log.entity'; | ||
|
||
export interface LogRepository { | ||
insertRequestLog(log: RequestLogEntity): Promise<void>; | ||
insertResponseLog(log: ResponseLogEntity): Promise<void>; | ||
insertHttpLog(log: HttpLogEntity): Promise<void>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.