Replace printf with LogPrintf / LogPrint
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#define BITCOIN_LEVELDB_H
|
||||
|
||||
#include "serialize.h"
|
||||
#include "util.h"
|
||||
|
||||
#include <leveldb/db.h>
|
||||
#include <leveldb/write_batch.h>
|
||||
@@ -91,7 +92,7 @@ public:
|
||||
if (!status.ok()) {
|
||||
if (status.IsNotFound())
|
||||
return false;
|
||||
printf("LevelDB read failure: %s\n", status.ToString().c_str());
|
||||
LogPrintf("LevelDB read failure: %s\n", status.ToString().c_str());
|
||||
HandleError(status);
|
||||
}
|
||||
try {
|
||||
@@ -120,7 +121,7 @@ public:
|
||||
if (!status.ok()) {
|
||||
if (status.IsNotFound())
|
||||
return false;
|
||||
printf("LevelDB read failure: %s\n", status.ToString().c_str());
|
||||
LogPrintf("LevelDB read failure: %s\n", status.ToString().c_str());
|
||||
HandleError(status);
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user