Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit ebeeafa

Browse files
committed
Log only in debug.
1 parent 10c5fc4 commit ebeeafa

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/google_sign_in/google_sign_in_web/lib/google_sign_in_web.dart

+2-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import 'dart:async';
66
import 'dart:html' as html;
77

8-
import 'package:flutter/foundation.dart' show visibleForTesting;
8+
import 'package:flutter/foundation.dart' show visibleForTesting, kDebugMode;
99
import 'package:flutter/services.dart' show PlatformException;
1010
import 'package:flutter_web_plugins/flutter_web_plugins.dart';
1111
import 'package:google_identity_services_web/loader.dart' as loader;
@@ -117,8 +117,7 @@ class GoogleSignInPlugin extends GoogleSignInPlatform {
117117
clientId: appClientId!,
118118
hostedDomain: params.hostedDomain,
119119
initialScopes: List<String>.from(params.scopes),
120-
// *TODO(dit): Remove this before releasing.
121-
loggingEnabled: true,
120+
loggingEnabled: kDebugMode,
122121
);
123122

124123
_isInitCalled = true;

0 commit comments

Comments
 (0)