[Kde-pim] KDE/kdelibs/kdecore/io
David Faure
faure at kde.org
Thu May 20 16:30:58 BST 2010
SVN commit 1128888 by dfaure:
If you export KDE_DEBUG_TIMESTAMP=1 then you'll get time information in front of every debug line.
This is especially useful when debugging the huge amount of messages sent by akonadi resources :-)
CCMAIL: kde-pim at kde.org
M +5 -0 kdebug.cpp
--- trunk/KDE/kdelibs/kdecore/io/kdebug.cpp #1128887:1128888
@@ -513,8 +513,13 @@
static bool printProcessInfo = (qgetenv("KDE_DEBUG_NOPROCESSINFO").isEmpty());
static bool printAreaName = (qgetenv("KDE_DEBUG_NOAREANAME").isEmpty());
static bool printMethodName = (qgetenv("KDE_DEBUG_NOMETHODNAME").isEmpty());
+ static bool printTimeStamp = !(qgetenv("KDE_DEBUG_TIMESTAMP").isEmpty());
QByteArray programName;
s = s.nospace();
+ if (printTimeStamp) {
+ s << qPrintable(QDateTime::currentDateTime().time().toString());
+ s << ' ';
+ }
if (printProcessInfo) {
programName = cache.value(0).name;
if (programName.isEmpty()) {
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/
More information about the kde-pim
mailing list