Browse Source

more logging

works_for_me
Volker Birk 2 years ago
parent
commit
d2d14905d1
1 changed files with 12 additions and 2 deletions
  1. +12
    -2
      pEpMacOSAdapter/pEpUpdater.mm

+ 12
- 2
pEpMacOSAdapter/pEpUpdater.mm View File

@ -32,7 +32,11 @@ pEpNotification *_subscriber = nil;
- (void)scheduleUpdates
{
self.timer = [NSTimer scheduledTimerWithTimeInterval:CYCLE target:self selector:@selector(updateAll:) userInfo:nil repeats:YES];
NSLog(@"pEpMacOSAdapter: schedule updates");
self.timer = [NSTimer scheduledTimerWithTimeInterval:CYCLE target:self
selector:@selector(updateAll:)
userInfo:nil repeats:YES];
}
- (void)updateAll:(NSTimer*)timer
@ -53,9 +57,13 @@ pEpNotification *_subscriber = nil;
- (void)updateWithFile:(NSString*)configFile error:(NSError **)err
{
NSLog(@"pEpMacOSAdapter: update product with config file %@", configFile);
NSInputStream *is = [NSInputStream inputStreamWithFileAtPath:configFile];
[is open];
NSDictionary* plist = [NSPropertyListSerialization propertyListWithStream:is options:NSPropertyListMutableContainers format:nil error:err];
NSDictionary* plist = [NSPropertyListSerialization
propertyListWithStream:is options:NSPropertyListMutableContainers
format:nil error:err];
[is close];
if (plist) {
@ -74,6 +82,8 @@ pEpNotification *_subscriber = nil;
- (void)update:(NSString*)name usingUrl:(NSString*)url
{
NSLog(@"pEpMacOSAdapter: update %@ using %@", name, url);
pEp::UpdateClient::product p = { name.UTF8String, url.UTF8String };
std::string keyfile = self.configPath.UTF8String;


Loading…
Cancel
Save