34
34
35
35
#include < boost/filesystem/operations.hpp>
36
36
#include < QApplication>
37
+ #include < QDebug>
37
38
#include < QLibraryInfo>
38
39
#include < QLocale>
39
40
#include < QMessageBox>
@@ -237,7 +238,7 @@ void BitcoinCore::initialize()
237
238
{
238
239
try
239
240
{
240
- LogPrintf ( " Running AppInit2 in thread\n " ) ;
241
+ qDebug () << __func__ << " : Running AppInit2 in thread" ;
241
242
int rv = AppInit2 (threadGroup);
242
243
if (rv)
243
244
{
@@ -258,11 +259,11 @@ void BitcoinCore::shutdown()
258
259
{
259
260
try
260
261
{
261
- LogPrintf ( " Running Shutdown in thread\n " ) ;
262
+ qDebug () << __func__ << " : Running Shutdown in thread" ;
262
263
threadGroup.interrupt_all ();
263
264
threadGroup.join_all ();
264
265
Shutdown ();
265
- LogPrintf ( " Shutdown finished\n " ) ;
266
+ qDebug () << __func__ << " : Shutdown finished" ;
266
267
emit shutdownResult (1 );
267
268
} catch (std::exception& e) {
268
269
handleRunawayException (&e);
@@ -290,10 +291,10 @@ BitcoinApplication::BitcoinApplication(int &argc, char **argv):
290
291
291
292
BitcoinApplication::~BitcoinApplication ()
292
293
{
293
- LogPrintf ( " Stopping thread\n " ) ;
294
+ qDebug () << __func__ << " : Stopping thread" ;
294
295
emit stopThread ();
295
296
coreThread->wait ();
296
- LogPrintf ( " Stopped thread\n " ) ;
297
+ qDebug () << __func__ << " : Stopped thread" ;
297
298
298
299
delete window;
299
300
window = 0 ;
@@ -355,13 +356,13 @@ void BitcoinApplication::startThread()
355
356
356
357
void BitcoinApplication::requestInitialize ()
357
358
{
358
- LogPrintf ( " Requesting initialize\n " ) ;
359
+ qDebug () << __func__ << " : Requesting initialize" ;
359
360
emit requestedInitialize ();
360
361
}
361
362
362
363
void BitcoinApplication::requestShutdown ()
363
364
{
364
- LogPrintf ( " Requesting shutdown\n " ) ;
365
+ qDebug () << __func__ << " : Requesting shutdown" ;
365
366
window->hide ();
366
367
window->setClientModel (0 );
367
368
pollShutdownTimer->stop ();
@@ -383,7 +384,7 @@ void BitcoinApplication::requestShutdown()
383
384
384
385
void BitcoinApplication::initializeResult (int retval)
385
386
{
386
- LogPrintf ( " Initialization result: %i \n " , retval) ;
387
+ qDebug () << __func__ << " : Initialization result: " << retval;
387
388
// Set exit result: 0 if successful, 1 if failure
388
389
returnValue = retval ? 0 : 1 ;
389
390
if (retval)
@@ -438,7 +439,7 @@ void BitcoinApplication::initializeResult(int retval)
438
439
439
440
void BitcoinApplication::shutdownResult (int retval)
440
441
{
441
- LogPrintf ( " Shutdown result: %i \n " , retval) ;
442
+ qDebug () << __func__ << " : Shutdown result: " << retval;
442
443
quit (); // Exit main loop after shutdown finished
443
444
}
444
445
0 commit comments