Skip to content

Commit 9924d66

Browse files
committed
[wpeview] Make WKRuntime log the WPE WebKit version
Log the version of WPE WebKit currently in use when WKRuntime is instantiated. This is useful for debugging, specially when shuffling and testing different versions.
1 parent acd26f0 commit 9924d66

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

wpeview/src/main/cpp/Runtime/WKRuntime.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,12 @@ void wpeTerminateProcess(void* /*backend*/, int64_t pid)
145145
}
146146
} // namespace
147147

148+
WKRuntime::WKRuntime()
149+
{
150+
Logging::logDebug("WKRuntime [tid %d], WPE WebKit %u.%u.%u", gettid(), webkit_get_major_version(),
151+
webkit_get_minor_version(), webkit_get_micro_version());
152+
}
153+
148154
void WKRuntime::configureJNIMappings()
149155
{
150156
getJNIBrowserCache();

wpeview/src/main/cpp/Runtime/WKRuntime.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class WKRuntime final {
4444
void invokeOnUiThread(void (*onExec)(void*), void (*onDestroy)(void*), void* userData) const noexcept;
4545

4646
private:
47-
WKRuntime() = default;
47+
WKRuntime();
4848

4949
friend class JNIBrowserCache;
5050
void jniInit();

0 commit comments

Comments
 (0)