Convert LOG() -> ROCP_X logging macros. (#695)
* Convert LOG() -> ROCP_X logging macros. This patch converts the LOG() macro to the ROCP_X logging macros. There are the following levels of logs. Logs whos expressions are not evaluated unless the log level is enabled: ROCP_TRACE - VLOG(2) (enabeled by env variable GLOG_v=2) ROCP_INFO - VLOG(1) (enabeled by env variable GLOG_v=1) Logs whos expressions are always evaluated: ROCP_WARNING - LOG(WARNING) ROCP_ERROR - LOG(ERROR) ROCP_FATAL - LOG(FATAL) ROCP_DFATAL - DLOG(FATAL) (only fatal in debug mode) * source formatting (clang-format v11) (#696) Co-authored-by: bwelton <1683479+bwelton@users.noreply.github.com> * Minor fix * Fixes for VLOG before main * fix vmodule * source formatting (clang-format v11) (#718) Co-authored-by: bwelton <1683479+bwelton@users.noreply.github.com> * memory leak fix * Vlog change --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: bwelton <1683479+bwelton@users.noreply.github.com>
这个提交包含在:
@@ -80,7 +80,7 @@ getBlockDimensions(std::string_view agent, const Metric& metric)
|
||||
}
|
||||
else
|
||||
{
|
||||
LOG(ERROR) << "Unknown AQL Profiler Dimension " << id << " " << extent;
|
||||
ROCP_ERROR << "Unknown AQL Profiler Dimension " << id << " " << extent;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -125,7 +125,7 @@ get_dimension_cache()
|
||||
dims.emplace(ast.out_id().handle, ast_copy.set_dimensions());
|
||||
} catch(std::runtime_error& e)
|
||||
{
|
||||
LOG(ERROR) << metric << " has improper dimensions"
|
||||
ROCP_ERROR << metric << " has improper dimensions"
|
||||
<< " " << e.what();
|
||||
throw;
|
||||
}
|
||||
|
||||
在新工单中引用
屏蔽一个用户