Add debug loggin of network connections

This commit is contained in:
craig.p.drummond
2013-11-26 19:57:36 +00:00
parent c4e671ddc7
commit a20d84f234
4 changed files with 22 additions and 3 deletions

View File

@@ -55,6 +55,7 @@
#include "streamfetcher.h"
#include "httpserver.h"
#include "songdialog.h"
#include "networkaccessmanager.h"
#ifdef ENABLE_EXTERNAL_TAGS
#include "tagclient.h"
#endif
@@ -140,10 +141,12 @@ enum Debug {
Dbg_StreamFetching = 0x0200,
Dbg_HttpServer = 0x0400,
Dbg_SongDialogs = 0x0800,
Dbg_TagHelper = 0x1000,
Dbg_NetworkAccess = 0x1000,
Dbg_TagHelper = 0x2000,
// NOTE: MUST UPDATE Dbg_All IF ADD NEW ITEMS!!!
Dbg_All = 0x1FFF
Dbg_All = 0x3FFF
};
static void installDebugMessageHandler()
@@ -191,6 +194,9 @@ static void installDebugMessageHandler()
if (dbg&Dbg_SongDialogs) {
SongDialog::enableDebug();
}
if (dbg&Dbg_NetworkAccess) {
NetworkAccessManager::enableDebug();
}
#ifdef ENABLE_EXTERNAL_TAGS
if (dbg&Dbg_TagHelper) {
TagClient::enableDebug();