Skip to content

Commit

Permalink
Improve logging of processed files
Browse files Browse the repository at this point in the history
  • Loading branch information
MaXal committed Nov 16, 2023
1 parent 590908a commit 0e8cbbe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/tc-collector/tcCollector.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func collectFromTeamCity(taskContext context.Context, clickHouseUrl string, tcUr
tcUrl,
userSpecifiedSince,
initialSince,
logger.With(zap.String("buildTypeId", buildTypeId), zap.String("projectId", projectId)),
logger.With(zap.String("buildTypeId", buildTypeId)),
)
}
}(buildTypeId))
Expand Down
2 changes: 1 addition & 1 deletion pkg/analyzer/InsertReportManager.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func (t *InsertReportManager) Insert(runResult *RunResult) error {
logger = logger.With(
zap.String("db", t.config.DbName),
zap.String("table", t.config.TableName),
zap.String("generatedTime", runResult.GeneratedTime.Format(time.RFC1123)),
zap.String("file", runResult.ReportFileName),
)

// tc collector uses tc build id to avoid duplicates, so, IsCheckThatNotAlreadyAddedNeeded is set to false by default
Expand Down

0 comments on commit 0e8cbbe

Please sign in to comment.