Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
henryzhx8 committed Oct 30, 2023
1 parent adc9d3f commit e8b30b4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions core/pipeline/PipelineContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,18 @@ namespace logtail {
const string PipelineContext::sEmptyString = "";

const string& PipelineContext::GetProjectName() const {
return mSLSInfo ? mSLSInfo->mProject : sEmptyString;
// return mSLSInfo ? mSLSInfo->mProject : sEmptyString;
return mProjectName;
}

const string& PipelineContext::GetLogstoreName() const {
return mSLSInfo ? mSLSInfo->mLogstore : sEmptyString;
// return mSLSInfo ? mSLSInfo->mLogstore : sEmptyString;
return mLogstoreName;
}

const string& PipelineContext::GetRegion() const {
return mSLSInfo ? mSLSInfo->mRegion : sEmptyString;
// return mSLSInfo ? mSLSInfo->mRegion : sEmptyString;
return mRegion;
}

LogstoreFeedBackKey PipelineContext::GetLogstoreKey() const {
Expand Down

0 comments on commit e8b30b4

Please sign in to comment.