|
15 | 15 | #include <util/generic/set.h>
|
16 | 16 | #include <util/stream/str.h>
|
17 | 17 |
|
18 |
| -#if defined BLOG_D || defined BLOG_I || defined BLOG_ERROR |
| 18 | +#if defined BLOG_D || defined BLOG_I || defined BLOG_ERROR || defined BLOG_LEVEL |
19 | 19 | #error log macro definition clash
|
20 | 20 | #endif
|
21 | 21 |
|
| 22 | +#define BLOG_LEVEL(level, stream, marker) LOG_LOG_S(*TlsActivationContext, level, NKikimrServices::TABLET_MAIN, "Tablet: " << TabletID() << " " << stream << " Marker# " << marker) |
22 | 23 | #define BLOG_D(stream, marker) LOG_DEBUG_S(*TlsActivationContext, NKikimrServices::TABLET_MAIN, "Tablet: " << TabletID() << " " << stream << " Marker# " << marker)
|
23 | 24 | #define BLOG_I(stream, marker) LOG_INFO_S(*TlsActivationContext, NKikimrServices::TABLET_MAIN, "Tablet: " << TabletID() << " " << stream << " Marker# " << marker)
|
24 | 25 | #define BLOG_ERROR(stream, marker) LOG_ERROR_S(*TlsActivationContext, NKikimrServices::TABLET_MAIN, "Tablet: " << TabletID() << " " << stream << " Marker# " << marker)
|
@@ -1745,7 +1746,10 @@ void TTablet::ReassignYellowChannels(TVector<ui32> &&yellowMoveChannels) {
|
1745 | 1746 | }
|
1746 | 1747 |
|
1747 | 1748 | void TTablet::CancelTablet(TEvTablet::TEvTabletDead::EReason reason, const TString &details) {
|
1748 |
| - BLOG_ERROR( |
| 1749 | + BLOG_LEVEL( |
| 1750 | + reason == TEvTablet::TEvTabletDead::ReasonPill |
| 1751 | + ? NActors::NLog::PRI_NOTICE |
| 1752 | + : NActors::NLog::PRI_ERROR, |
1749 | 1753 | " Type: " << TTabletTypes::TypeToStr((TTabletTypes::EType)Info->TabletType)
|
1750 | 1754 | << ", EReason: " << TEvTablet::TEvTabletDead::Str(reason)
|
1751 | 1755 | << ", SuggestedGeneration: " << SuggestedGeneration
|
|
0 commit comments