diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-04-25 16:43:02 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-04-25 16:45:34 +0200 |
commit | 3b78cbfdc16ef67f53e1e5ac8b94257ba81b0795 (patch) | |
tree | 21c8c80996a2ee586da37e16d29efa9a44b228f2 /CommonLibs/Logger.cpp | |
parent | f3d7f443a01e2a021a32cdbb402a38fdcedd2fee (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 'CommonLibs/Logger.cpp')
-rw-r--r-- | CommonLibs/Logger.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CommonLibs/Logger.cpp b/CommonLibs/Logger.cpp index ac3de42..393d882 100644 --- a/CommonLibs/Logger.cpp +++ b/CommonLibs/Logger.cpp @@ -50,7 +50,7 @@ Log::~Log() ScopedLock lock(gLogToLock); // The COUT() macro prevents messages from stomping each other but adds uninteresting thread numbers, // so just use std::cout. - LOGP(mCategory, mPriority, fmt, mStream.str().c_str()); + LOGPSRC(mCategory, mPriority, filename, line, fmt, mStream.str().c_str()); } ostringstream& Log::get() |