aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-04-25 16:43:02 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2018-04-25 16:45:34 +0200
commit3b78cbfdc16ef67f53e1e5ac8b94257ba81b0795 (patch)
tree21c8c80996a2ee586da37e16d29efa9a44b228f2 /tests
parentf3d7f443a01e2a021a32cdbb402a38fdcedd2fee (diff)
Logger: Print correct source file and line number
Before this commit, always Logger.cpp:53 was being printed. Change-Id: Ie5c64b4961c7c41d23484784a93eda5e08331f08
Diffstat (limited to 'tests')
-rw-r--r--tests/CommonLibs/LogTest.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/CommonLibs/LogTest.cpp b/tests/CommonLibs/LogTest.cpp
index 5167a62..5e51ce7 100644
--- a/tests/CommonLibs/LogTest.cpp
+++ b/tests/CommonLibs/LogTest.cpp
@@ -61,9 +61,9 @@ int main(int argc, char *argv[])
log_set_print_filename(osmo_stderr_target, 0);
log_set_print_level(osmo_stderr_target, 1);
- Log(MYCAT, LOGL_FATAL).get() << "testing the logger.";
- Log(MYCAT, LOGL_ERROR).get() << "testing the logger.";
- Log(MYCAT, LOGL_NOTICE).get() << "testing the logger.";
- Log(MYCAT, LOGL_INFO).get() << "testing the logger.";
- Log(MYCAT, LOGL_DEBUG).get() << "testing the logger.";
+ Log(MYCAT, LOGL_FATAL, __BASE_FILE__, __LINE__).get() << "testing the logger.";
+ Log(MYCAT, LOGL_ERROR, __BASE_FILE__, __LINE__).get() << "testing the logger.";
+ Log(MYCAT, LOGL_NOTICE, __BASE_FILE__, __LINE__).get() << "testing the logger.";
+ Log(MYCAT, LOGL_INFO, __BASE_FILE__, __LINE__).get() << "testing the logger.";
+ Log(MYCAT, LOGL_DEBUG, __BASE_FILE__, __LINE__).get() << "testing the logger.";
}