Skip to content

Commit

Permalink
Merge pull request jonataslaw#1858 from maxzod/enable_logs
Browse files Browse the repository at this point in the history
enable logs on debug instead of always
  • Loading branch information
jonataslaw authored Sep 29, 2021
2 parents 328f851 + 012d7b5 commit 9a3b0f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/get_core/src/get_interface.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';

import 'log.dart';
Expand All @@ -9,6 +10,6 @@ abstract class GetInterface {
SmartManagement smartManagement = SmartManagement.full;
RouterDelegate? routerDelegate;
RouteInformationParser? routeInformationParser;
bool isLogEnable = true;
bool isLogEnable = kDebugMode;
LogWriterCallback log = defaultLogWriterCallback;
}
4 changes: 2 additions & 2 deletions lib/get_navigation/src/root/get_cupertino_app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class GetCupertinoApp extends StatelessWidget {
this.onReady,
this.getPages,
this.opaqueRoute,
this.enableLog,
this.enableLog = kDebugMode,
this.logWriterCallback,
this.popGesture,
this.transitionDuration,
Expand Down Expand Up @@ -154,7 +154,7 @@ class GetCupertinoApp extends StatelessWidget {
this.onInit,
this.onReady,
this.onDispose,
this.enableLog,
this.enableLog = kDebugMode,
this.logWriterCallback,
this.popGesture,
this.smartManagement = SmartManagement.full,
Expand Down

0 comments on commit 9a3b0f3

Please sign in to comment.