修复profiler频繁打印日志问题

Signed-off-by: ganchuantao <ganchuantao1@huawei.com>
This commit is contained in:
ganchuantao 2024-10-10 13:12:07 +00:00 committed by Gitee
parent 3e666fa31e
commit 3a90f7c9b9
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -349,7 +349,7 @@ bool ShareMemoryBlock::TakeData(const DataHandler& func, bool isProtobufSerializ
auto size = GetDataSize();
if (size == 0 || size > header_->info.memorySize_) {
PROFILER_LOG_ERROR(LOG_CORE, "invalid size [%d]", size);
PROFILER_LOG_DEBUG(LOG_CORE, "invalid size [%d]", size);
return false;
}
auto ptr = GetDataPoint();