summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortastytea2020-01-05 12:41:25 +0100
committertastytea2020-01-05 12:41:25 +0100
commit4cbda2c09109245a2e7f8f77e87af59f216eed41 (patch)
tree6328d075d4f56049409d3ee1929a8b46a4b5ec33
parent31950d280d0b2d1576b8729805bb420839dc8c95 (diff)
downloadmastodonpp-4cbda2c09109245a2e7f8f77e87af59f216eed41.tar
mastodonpp-4cbda2c09109245a2e7f8f77e87af59f216eed41.tar.gz
mastodonpp-4cbda2c09109245a2e7f8f77e87af59f216eed41.zip
Include function name instead of file name in debuglog.
-rw-r--r--src/log.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/log.hpp b/src/log.hpp
index 154de03..5bdcc96 100644
--- a/src/log.hpp
+++ b/src/log.hpp
@@ -25,7 +25,7 @@ namespace mastodonpp
using std::cerr;
#ifndef NDEBUG
- #define debuglog cerr << "[" << __FILE__ << ":" << __LINE__ << "] DEBUG: "
+ #define debuglog cerr << "[" << __func__ << "():" << __LINE__ << "] DEBUG: "
#else
#define debuglog false && cerr
#endif