Include function name instead of file name in debuglog.

This commit is contained in:
tastytea 2020-01-05 12:41:25 +01:00
parent 31950d280d
commit 4cbda2c091
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 1 additions and 1 deletions

View File

@ -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