Title: [228562] trunk/Source/WebCore
Revision
228562
Author
[email protected]
Date
2018-02-16 10:48:32 -0800 (Fri, 16 Feb 2018)

Log Message

Log the error message when failing to open the database
https://bugs.webkit.org/show_bug.cgi?id=182795
<rdar://problem/37592399>

Unreviewed.
Fixing iOS simulator debug build.

Patch by Youenn Fablet <[email protected]> on 2018-02-16

* workers/service/server/RegistrationDatabase.cpp:
(WebCore::RegistrationDatabase::openSQLiteDatabase):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (228561 => 228562)


--- trunk/Source/WebCore/ChangeLog	2018-02-16 17:46:13 UTC (rev 228561)
+++ trunk/Source/WebCore/ChangeLog	2018-02-16 18:48:32 UTC (rev 228562)
@@ -1,3 +1,15 @@
+2018-02-16  Youenn Fablet  <[email protected]>
+
+        Log the error message when failing to open the database
+        https://bugs.webkit.org/show_bug.cgi?id=182795
+        <rdar://problem/37592399>
+
+        Unreviewed.
+        Fixing iOS simulator debug build.
+
+        * workers/service/server/RegistrationDatabase.cpp:
+        (WebCore::RegistrationDatabase::openSQLiteDatabase):
+
 2018-02-16  Fujii Hironori  <[email protected]>
 
         IndexedDB: Several test crash in when destroying a IDBKeyData

Modified: trunk/Source/WebCore/workers/service/server/RegistrationDatabase.cpp (228561 => 228562)


--- trunk/Source/WebCore/workers/service/server/RegistrationDatabase.cpp	2018-02-16 17:46:13 UTC (rev 228561)
+++ trunk/Source/WebCore/workers/service/server/RegistrationDatabase.cpp	2018-02-16 18:48:32 UTC (rev 228562)
@@ -108,7 +108,13 @@
     String errorMessage;
     auto scopeExit = makeScopeExit([&, errorMessage = &errorMessage] {
         ASSERT_UNUSED(errorMessage, !errorMessage->isNull());
+
+#if RELEASE_LOG_DISABLED
+        LOG_ERROR(ServiceWorker, "Failed to open Service Worker registration database: %s", errorMessage->utf8().data());
+#else
         RELEASE_LOG_ERROR(ServiceWorker, "Failed to open Service Worker registration database: %{public}s", errorMessage->utf8().data());
+#endif
+
         m_database = nullptr;
         postTaskReply(createCrossThreadTask(*this, &RegistrationDatabase::databaseFailedToOpen));
     });
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to