Skip to content

Commit 686006e

Browse files
committed
log function names in task lifecycle methods using ppc::util::FuncName()
1 parent 51ec3b9 commit 686006e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/core/task/include/task.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,15 @@ class Task {
108108
/// @brief Validates input data and task attributes before execution.
109109
/// @return True if validation is successful.
110110
virtual bool Validation() final {
111+
std::cout << ppc::util::FuncName() << '\n';
111112
InternalOrderTest(ppc::util::FuncName());
112113
return ValidationImpl();
113114
}
114115

115116
/// @brief Performs preprocessing on the input data.
116117
/// @return True if preprocessing is successful.
117118
virtual bool PreProcessing() final {
119+
std::cout << ppc::util::FuncName() << '\n';
118120
InternalOrderTest(ppc::util::FuncName());
119121
if (state_of_testing_ == StateOfTesting::kFunc) {
120122
InternalTimeTest(ppc::util::FuncName());
@@ -125,13 +127,15 @@ class Task {
125127
/// @brief Executes the main logic of the task.
126128
/// @return True if execution is successful.
127129
virtual bool Run() final {
130+
std::cout << ppc::util::FuncName() << '\n';
128131
InternalOrderTest(ppc::util::FuncName());
129132
return RunImpl();
130133
}
131134

132135
/// @brief Performs postprocessing on the output data.
133136
/// @return True if postprocessing is successful.
134137
virtual bool PostProcessing() final {
138+
std::cout << ppc::util::FuncName() << '\n';
135139
InternalOrderTest(ppc::util::FuncName());
136140
if (state_of_testing_ == StateOfTesting::kFunc) {
137141
InternalTimeTest(ppc::util::FuncName());

0 commit comments

Comments
 (0)