[Pkg-owncloud-commits] [owncloud-client] 53/211: Logger: Log the thread pointer
Sandro Knauß
hefee-guest at moszumanska.debian.org
Sat Oct 25 09:10:25 UTC 2014
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit ef48de34f73434c7745ed6a4628943fe1de34c3b
Author: Markus Goetz <markus at woboq.com>
Date: Sat Oct 11 16:58:47 2014 +0200
Logger: Log the thread pointer
Maybe we can somehow reduce this to make it not so many characters wide?
---
src/mirall/logger.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/mirall/logger.cpp b/src/mirall/logger.cpp
index 0bc8d1c..ff80d3d 100644
--- a/src/mirall/logger.cpp
+++ b/src/mirall/logger.cpp
@@ -16,6 +16,7 @@
#include <QDir>
#include <QStringList>
+#include <QThread>
namespace Mirall {
@@ -85,6 +86,7 @@ void Logger::log(Log log)
} else {
// msg += "ownCloud - ";
}
+ msg += QString().sprintf("%p ", (void*)QThread::currentThread());
msg += log.message;
// _logs.append(log);
// std::cout << qPrintable(log.message) << std::endl;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list