chore: review logs & add RNV prefix for easier filtering

This commit is contained in:
olivier
2023-01-28 14:29:00 +01:00
parent dc8c618d41
commit d825d0e6bc
4 changed files with 13 additions and 11 deletions

View File

@@ -30,7 +30,7 @@
options.useDirectorySeparation = NO;
#ifdef DEBUG
options.debugOutput = ^(NSString *string) {
NSLog(@"Video Cache: %@", string);
RCTLog(@"Video Cache: %@", string);
};
#endif
[self createTemporaryPath];
@@ -48,7 +48,7 @@
error:&error];
#ifdef DEBUG
if (!success || error) {
NSLog(@"Error while! %@", error);
RCTLog(@"Error while! %@", error);
}
#endif
}
@@ -64,7 +64,7 @@
[self.videoCache storeData:data forKey:key locked:NO withCallback:^(SPTPersistentCacheResponse * _Nonnull response) {
if (response.error) {
#ifdef DEBUG
NSLog(@"An error occured while saving the video into the cache: %@", [response.error localizedDescription]);
RCTLog(@"An error occured while saving the video into the cache: %@", [response.error localizedDescription]);
#endif
handler(NO);
return;