Commit 4e5d6544 authored by Dominik Charousset's avatar Dominik Charousset

Print file and line number on errors

parent fe1d25df
...@@ -195,9 +195,11 @@ private: ...@@ -195,9 +195,11 @@ private:
caf::logger::line_builder lb; \ caf::logger::line_builder lb; \
lb << message; \ lb << message; \
if (nclass.empty()) \ if (nclass.empty()) \
printf("[ERROR] %s::%s: %s\n", nclass.c_str(), nfun, lb.get().c_str()); \ printf("[ERROR] in %s:%d %s::%s: %s\n", __FILE__, __LINE__, \
nclass.c_str(), nfun, lb.get().c_str()); \
else \ else \
printf("[ERROR] %s: %s\n", nfun, lb.get().c_str()); \ printf("[ERROR] in %s:%d %s: %s\n", __FILE__, __LINE__, \
nfun, lb.get().c_str()); \
} while (false) } while (false)
#define CAF_ARG(argument) caf::logger::make_arg_wrapper(#argument, argument) #define CAF_ARG(argument) caf::logger::make_arg_wrapper(#argument, argument)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment