Skip to content

Commit

Permalink
fix: IOS adding logging
Browse files Browse the repository at this point in the history
  • Loading branch information
juanky201271 committed Feb 26, 2024
1 parent 792d44c commit c8b82d5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ios/ZingoMobile/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ -(void)syncingProcessBackgroundTask:(NSString *)noValue {
timeStampStrStart = [timeStampObjStart stringValue];
NSString *jsonBackgroudStart = [NSString stringWithFormat: @"%@%@%@%@%@%@%@%@%@", @"{\"batches\": \"", @"0", @"\", \"message\": \"", @"Starting OK.", @"\", \"date\": \"", timeStampStrStart, @"\", \"dateEnd\": \"", @"0", @"\"}"];
[rpcmodule saveBackgroundFile:jsonBackgroudStart];
NSLog(@"BGTask syncingProcessBackgroundTask - Save background JSON");
NSLog(@"BGTask syncingProcessBackgroundTask - Save background JSON %@", jsonBackgroudStart);

NSLog(@"BGTask syncingProcessBackgroundTask");
BOOL exists = [self wallet__exists];
Expand Down Expand Up @@ -233,7 +233,7 @@ -(void)syncingProcessBackgroundTask:(NSString *)noValue {
NSString *timeStampStrError = [timeStampObjError stringValue];
NSString *jsonBackgroudError = [NSString stringWithFormat: @"%@%@%@%@%@%@%@%@%@", @"{\"batches\": \"", @"0", @"\", \"message\": \"", @"No active wallet KO.", @"\", \"date\": \"", timeStampStrStart, @"\", \"dateEnd\": \"", timeStampStrError, @"\"}"];
[rpcmodule saveBackgroundFile:jsonBackgroudError];
NSLog(@"BGTask syncingProcessBackgroundTask - Save background JSON");
NSLog(@"BGTask syncingProcessBackgroundTask - Save background JSON %@", jsonBackgroudError);

[bgTask setTaskCompletedWithSuccess:NO];
bgTask = nil;
Expand All @@ -257,7 +257,7 @@ -(void)syncingProcessBackgroundTask:(NSString *)noValue {
NSString *timeStampStrEnd = [timeStampObjEnd stringValue];
NSString *jsonBackgroudEnd = [NSString stringWithFormat: @"%@%@%@%@%@%@%@%@%@", @"{\"batches\": \"", @"0", @"\", \"message\": \"", @"Finished OK.", @"\", \"date\": \"", timeStampStrStart, @"\", \"dateEnd\": \"", timeStampStrEnd, @"\"}"];
[rpcmodule saveBackgroundFile:jsonBackgroudEnd];
NSLog(@"BGTask syncingProcessBackgroundTask - Save background JSON");
NSLog(@"BGTask syncingProcessBackgroundTask - Save background JSON %@", jsonBackgroudEnd);

[bgTask setTaskCompletedWithSuccess:YES];
bgTask = nil;
Expand Down Expand Up @@ -374,7 +374,7 @@ - (void)startBackgroundTask:(NSString *)noValue {
NSString *timeStampStr = [timeStampObj stringValue];
NSString *jsonBackgroud = [NSString stringWithFormat: @"%@%@%@%@%@%@%@%@%@", @"{\"batches\": \"", @"0", @"\", \"message\": \"", @"Expiration fired. Finished OK.", @"\", \"date\": \"", timeStampStrStart, @"\", \"dateEnd\": \"", timeStampStr, @"\"}"];
[rpcmodule saveBackgroundFile:jsonBackgroud];
NSLog(@"BGTask startBackgroundTask - expirationHandler Save background JSON");
NSLog(@"BGTask startBackgroundTask - expirationHandler Save background JSON %@", jsonBackgroud);

[bgTask setTaskCompletedWithSuccess:NO];
bgTask = nil;
Expand Down

0 comments on commit c8b82d5

Please sign in to comment.