diff options
author | ivanmorozov <ivanmorozov@yandex-team.com> | 2023-01-16 13:22:08 +0300 |
---|---|---|
committer | ivanmorozov <ivanmorozov@yandex-team.com> | 2023-01-16 13:22:08 +0300 |
commit | 7858e0d83acd62a0f5790a12eec397441c189c8e (patch) | |
tree | 6e00c7a9a2d7c1234340cb1590fe9ebf29328913 /library/cpp | |
parent | 39b48d016639a9fe02f2ef4d2b6da101b93ea179 (diff) | |
download | ydb-7858e0d83acd62a0f5790a12eec397441c189c8e.tar.gz |
add file:line into ALS logs
Diffstat (limited to 'library/cpp')
-rw-r--r-- | library/cpp/actors/core/log.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/library/cpp/actors/core/log.h b/library/cpp/actors/core/log.h index 4397ca821b4..5000216f50c 100644 --- a/library/cpp/actors/core/log.h +++ b/library/cpp/actors/core/log.h @@ -381,7 +381,10 @@ namespace NActors { } #define ACTORS_LOG_STREAM(actorCtxOrSystem, mPriority, mComponent) \ - if (!IS_LOG_PRIORITY_ENABLED(actorCtxOrSystem, mPriority, mComponent)); else NActors::TRecordWriter(actorCtxOrSystem, static_cast<::NActors::NLog::EPriority>(mPriority), static_cast<::NActors::NLog::EComponent>(mComponent)) + if (!IS_LOG_PRIORITY_ENABLED(actorCtxOrSystem, mPriority, mComponent));\ + else NActors::TRecordWriter(\ + actorCtxOrSystem, static_cast<::NActors::NLog::EPriority>(mPriority), static_cast<::NActors::NLog::EComponent>(mComponent)\ + ) << TStringBuf(__FILE__).RAfter(LOCSLASH_C) << ":" << __LINE__ << " :" #define ACTORS_LOG_STREAM_TRACE(actorCtxOrSystem, component) ACTORS_LOG_STREAM(actorCtxOrSystem, NActors::NLog::PRI_TRACE, component) #define ACTORS_LOG_STREAM_DEBUG(actorCtxOrSystem, component) ACTORS_LOG_STREAM(actorCtxOrSystem, NActors::NLog::PRI_DEBUG, component) |