mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
add debug logging to finder.cpp
This commit is contained in:
parent
76132bec90
commit
561ee6dff9
@ -16,6 +16,8 @@ using namespace vm;
|
|||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
|
const bool DebugFind = false;
|
||||||
|
|
||||||
const char*
|
const char*
|
||||||
append(System* s, const char* a, const char* b,
|
append(System* s, const char* a, const char* b,
|
||||||
const char* c)
|
const char* c)
|
||||||
@ -141,6 +143,9 @@ class DirectoryElement: public Element {
|
|||||||
s->free(file);
|
s->free(file);
|
||||||
|
|
||||||
if (s->success(status)) {
|
if (s->success(status)) {
|
||||||
|
if (DebugFind) {
|
||||||
|
fprintf(stderr, "found %s in %s\n", name, this->name);
|
||||||
|
}
|
||||||
return region;
|
return region;
|
||||||
} else {
|
} else {
|
||||||
return 0;
|
return 0;
|
||||||
@ -487,7 +492,11 @@ class JarElement: public Element {
|
|||||||
|
|
||||||
while (*name == '/') name++;
|
while (*name == '/') name++;
|
||||||
|
|
||||||
return (index ? index->find(name, region->start()) : 0);
|
System::Region* r = (index ? index->find(name, region->start()) : 0);
|
||||||
|
if (DebugFind and r) {
|
||||||
|
fprintf(stderr, "found %s in %s\n", name, this->name);
|
||||||
|
}
|
||||||
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual bool exists(const char* name) {
|
virtual bool exists(const char* name) {
|
||||||
|
Loading…
Reference in New Issue
Block a user