summaryrefslogtreecommitdiffhomepage
path: root/tracker-hatire/thread.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-05-17 18:26:41 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-05-17 18:26:41 +0200
commit6711d08ff580206ec38b4f4a0deb1a04a16de431 (patch)
treec259709e9e0acca118a8b1adaf79859e3e9dc2e2 /tracker-hatire/thread.cpp
parent389ce0f98e0dda9f96340d9add9175df53e0745e (diff)
tracker/hatire: move logger from header
There's no need for the identifier to be exposed.
Diffstat (limited to 'tracker-hatire/thread.cpp')
-rw-r--r--tracker-hatire/thread.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tracker-hatire/thread.cpp b/tracker-hatire/thread.cpp
index 74abf628..629d1bff 100644
--- a/tracker-hatire/thread.cpp
+++ b/tracker-hatire/thread.cpp
@@ -48,6 +48,14 @@ void hatire_thread::sendcmd_impl(const QByteArray &cmd)
#endif
}
+struct Diag final : public QFile
+{
+ Diag()
+ {
+ setFileName(QCoreApplication::applicationDirPath() + "/HATDiagnostics.txt");
+ }
+};
+
void hatire_thread::Log(const QString& message)
{
// Drop out immediately if logging is off. Yes, there is still some overhead because of passing strings around for no reason.