Skip to content

Commit

Permalink
Trim debug info in configs_dispatcher (#10364)
Browse files Browse the repository at this point in the history
  • Loading branch information
Enjection authored Oct 14, 2024
1 parent 23d3161 commit 119ebfe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ydb/core/config/init/init.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ struct TConfigItemInfo {
};

struct TUpdate {
const char* File;
TString File;
ui32 Line;
EUpdateKind Kind;
};
Expand Down Expand Up @@ -76,10 +76,10 @@ class IConfigUpdateTracer {
public:
virtual ~IConfigUpdateTracer() {}
void AddUpdate(ui32 kind, TConfigItemInfo::EUpdateKind update, const NCompat::TSourceLocation location = NCompat::TSourceLocation::current()) {
return this->Add(kind, TConfigItemInfo::TUpdate{location.file_name(), location.line(), update});
return this->Add(kind, TConfigItemInfo::TUpdate{NUtil::TrimSourceFileName(location.file_name()), location.line(), update});
}
void AddUpdate(ui32 kind, TConfigItemInfo::EUpdateKind update, TCallContext ctx) {
return this->Add(kind, TConfigItemInfo::TUpdate{ctx.File, ctx.Line, update});
return this->Add(kind, TConfigItemInfo::TUpdate{NUtil::TrimSourceFileName(ctx.File), ctx.Line, update});
}
virtual void Add(ui32 kind, TConfigItemInfo::TUpdate update) = 0;
virtual THashMap<ui32, TConfigItemInfo> Dump() const = 0;
Expand Down

0 comments on commit 119ebfe

Please sign in to comment.