Skip to content

Commit

Permalink
fix: flutter下控制台不输出问题以及多余的page事件
Browse files Browse the repository at this point in the history
  • Loading branch information
CaicaiNo committed Aug 6, 2021
1 parent edcabe4 commit 8a39206
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion GrowingAutotrackerCore/Page/GrowingPageManager.m
Expand Up @@ -291,7 +291,8 @@ - (NSMutableArray *)ignoredPrivateControllers {
@"UIInputWindowController", @"UIActivityGroupViewController", @"UIKeyboardHiddenViewController",
@"UICompatibilityInputViewController", @"UISystemInputAssistantViewController",
@"UIPredictionViewController", @"GrowingWindowViewController", @"UIApplicationRotationFollowingController",
@"UIAlertController"
@"UIAlertController",
@"FlutterViewController",
]];
}
return _ignoredPrivateControllers;
Expand Down
2 changes: 2 additions & 0 deletions GrowingTrackerCore/GrowingRealTracker.m
Expand Up @@ -65,6 +65,8 @@ + (instancetype)trackerWithConfiguration:(GrowingTrackConfiguration *)configurat

- (void)loggerSetting {
[GrowingLog addLogger:[GrowingTTYLogger sharedInstance] withLevel:self.configuration.debugEnabled ? GrowingLogLevelDebug : GrowingLogLevelInfo];
// flutter use this console
[GrowingLog addLogger:[GrowingASLLogger sharedInstance] withLevel:self.configuration.debugEnabled ? GrowingLogLevelDebug : GrowingLogLevelInfo];
[GrowingLog addLogger:[GrowingWSLogger sharedInstance] withLevel:GrowingLogLevelVerbose];
[GrowingWSLogger sharedInstance].logFormatter = [GrowingWSLoggerFormat new];
}
Expand Down

0 comments on commit 8a39206

Please sign in to comment.