Skip to content

Commit

Permalink
TF-1912 Only trigger log when debug logs are enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
dab246 committed Jul 18, 2023
1 parent 937fc43 commit 2cda146
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions core/lib/utils/app_logger.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import 'package:flutter/material.dart';
final logHistory = _Dispatcher("");

void log(String? value) {
String v = value ?? "";
logHistory.value = "$v\n${logHistory.value}";
if (kDebugMode) {
String v = value ?? "";
logHistory.value = "$v\n${logHistory.value}";
print(v);
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import 'dart:developer';

import 'package:core/presentation/extensions/color_extension.dart';
import 'package:core/presentation/resources/image_paths.dart';
import 'package:core/utils/app_logger.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:get/get.dart';
Expand Down

0 comments on commit 2cda146

Please sign in to comment.