Skip to content

Commit 119ebfe

Browse files
authored
Trim debug info in configs_dispatcher (#10364)
1 parent 23d3161 commit 119ebfe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ydb/core/config/init/init.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ struct TConfigItemInfo {
2929
};
3030

3131
struct TUpdate {
32-
const char* File;
32+
TString File;
3333
ui32 Line;
3434
EUpdateKind Kind;
3535
};
@@ -76,10 +76,10 @@ class IConfigUpdateTracer {
7676
public:
7777
virtual ~IConfigUpdateTracer() {}
7878
void AddUpdate(ui32 kind, TConfigItemInfo::EUpdateKind update, const NCompat::TSourceLocation location = NCompat::TSourceLocation::current()) {
79-
return this->Add(kind, TConfigItemInfo::TUpdate{location.file_name(), location.line(), update});
79+
return this->Add(kind, TConfigItemInfo::TUpdate{NUtil::TrimSourceFileName(location.file_name()), location.line(), update});
8080
}
8181
void AddUpdate(ui32 kind, TConfigItemInfo::EUpdateKind update, TCallContext ctx) {
82-
return this->Add(kind, TConfigItemInfo::TUpdate{ctx.File, ctx.Line, update});
82+
return this->Add(kind, TConfigItemInfo::TUpdate{NUtil::TrimSourceFileName(ctx.File), ctx.Line, update});
8383
}
8484
virtual void Add(ui32 kind, TConfigItemInfo::TUpdate update) = 0;
8585
virtual THashMap<ui32, TConfigItemInfo> Dump() const = 0;

0 commit comments

Comments
 (0)