[SceneKit Spectrum] Added device name to logging

Device name logging is essential in determining if crashes are on
specific device models that haven't been blocklisted.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
swiftingly
Christopher Snowhill 2022-06-18 18:14:25 -07:00
parent 41d4c7458e
commit b01924e10e
1 changed files with 7 additions and 0 deletions

View File

@ -13,6 +13,10 @@
#import "analyzer.h"
#import "Logging.h"
@import Firebase;
#define LOWER_BOUND -80
static void *kSpectrumViewSKContext = &kSpectrumViewSKContext;
@ -61,6 +65,9 @@ extern NSString *CogPlaybackDidStopNotficiation;
if(!device) return nil;
DLog(@"SceneKit visualizer accessed device named: %@", device.name);
[[FIRCrashlytics crashlytics] logWithFormat:@"SceneKit visualizer accessed device named: %@", device.name];
if([device.name containsString:@"AMD"]) {
if([device.name containsString:@"FirePro D"] ||
[device.name containsString:@" M2"] ||