Skip to content

Commit

Permalink
rename argument in colossus createElasticTransport
Browse files Browse the repository at this point in the history
  • Loading branch information
kdembler committed Nov 16, 2023
1 parent 9a1922f commit 717a875
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions storage-node/src/services/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export function initNewLogger(options: LogConfig): void {
function createElasticTransport(
logSource: string,
elasticSearchEndpoint: string,
elasticSearchIndex?: string,
elasticSearchIndexPrefix?: string,
elasticSearchUser?: string,
elasticSearchPassword?: string
): winston.transport {
Expand All @@ -210,7 +210,7 @@ function createElasticTransport(
elasticLogLevel = 'debug' // default
}

const indexPrefix = elasticSearchIndex || 'logs-colossus'
const indexPrefix = elasticSearchIndexPrefix || 'logs-colossus'
const index = `${indexPrefix}-${logSource}`.toLowerCase()

const esTransport = new ElasticsearchTransport({
Expand Down

0 comments on commit 717a875

Please sign in to comment.