[node] Output debug logs when a render test times out

This commit is contained in:
John Firebaugh
2015-10-28 11:58:42 -07:00
parent dd56e832b5
commit 014b517820
16 changed files with 80 additions and 2 deletions

View File

@@ -324,4 +324,15 @@ void MapContext::onResourceLoadingFailed(std::exception_ptr error) {
}
}
void MapContext::dumpDebugLogs() const {
Log::Info(Event::General, "--------------------------------------------------------------------------------");
Log::Info(Event::General, "MapContext::styleURL: %s", styleURL.c_str());
if (style) {
style->dumpDebugLogs();
} else {
Log::Info(Event::General, "no style loaded");
}
Log::Info(Event::General, "--------------------------------------------------------------------------------");
}
}