[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-4' - ios/Mobile

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Apr 26 09:02:46 UTC 2019


 ios/Mobile/AppDelegate.mm |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit f4ebf6d2835946ce708db5884d055f7e1155fe6e
Author:     Tor Lillqvist <tml at collabora.com>
AuthorDate: Fri Apr 26 12:01:25 2019 +0300
Commit:     Tor Lillqvist <tml at collabora.com>
CommitDate: Fri Apr 26 12:01:25 2019 +0300

    Log the timestamp of the template file at its site and of its cached version

diff --git a/ios/Mobile/AppDelegate.mm b/ios/Mobile/AppDelegate.mm
index a2722da89..b9836f5d4 100644
--- a/ios/Mobile/AppDelegate.mm
+++ b/ios/Mobile/AppDelegate.mm
@@ -130,6 +130,10 @@ static void updateTemplates(NSData *data, NSURLResponse *response)
 
                                         NSDate *cachedTemplateDate = [[[NSFileManager defaultManager] attributesOfItemAtPath:[fileForTemplate path] error:nil] objectForKey:NSFileModificationDate];
 
+                                        LOG_INF("Template at " << [[url absoluteString] UTF8String] << " timestamp: "
+                                                << [[templateDate descriptionWithLocale:nil] UTF8String] << ", cached template timestamp: "
+                                                << [[cachedTemplateDate descriptionWithLocale:nil] UTF8String]);
+
                                         if ([templateDate compare:cachedTemplateDate] == NSOrderedDescending) {
                                             downloadTemplate(url, fileForTemplate);
                                         }


More information about the Libreoffice-commits mailing list