mirror of
https://github.com/corda/corda.git
synced 2025-01-05 20:54:13 +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 {
|
||||
|
||||
const bool DebugFind = false;
|
||||
|
||||
const char*
|
||||
append(System* s, const char* a, const char* b,
|
||||
const char* c)
|
||||
@ -141,6 +143,9 @@ class DirectoryElement: public Element {
|
||||
s->free(file);
|
||||
|
||||
if (s->success(status)) {
|
||||
if (DebugFind) {
|
||||
fprintf(stderr, "found %s in %s\n", name, this->name);
|
||||
}
|
||||
return region;
|
||||
} else {
|
||||
return 0;
|
||||
@ -487,7 +492,11 @@ class JarElement: public Element {
|
||||
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user