Skip to content

Commit ef3037d

Browse files
authored
Minor logging clean up (#1064)
1 parent 9d7d6d4 commit ef3037d

2 files changed

Lines changed: 3 additions & 10 deletions

File tree

lib/src/e2ee/e2ee_manager.dart

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -125,15 +125,9 @@ class E2EEManager {
125125

126126
Future<void> ratchetKey({String? participantId, int? keyIndex}) async {
127127
if (participantId != null) {
128-
final newKey = await _keyProvider.ratchetKey(participantId, keyIndex);
129-
if (kDebugMode) {
130-
print('newKey: $newKey');
131-
}
128+
await _keyProvider.ratchetKey(participantId, keyIndex);
132129
} else {
133-
final newKey = await _keyProvider.ratchetSharedKey(keyIndex: keyIndex);
134-
if (kDebugMode) {
135-
print('newKey: $newKey');
136-
}
130+
await _keyProvider.ratchetSharedKey(keyIndex: keyIndex);
137131
}
138132
}
139133

lib/src/e2ee/key_provider.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
import 'dart:convert';
1615
import 'dart:typed_data';
1716

1817
import 'package:flutter_webrtc/flutter_webrtc.dart' as rtc;
@@ -141,7 +140,7 @@ class BaseKeyProvider implements KeyProvider {
141140
if (!_keys.containsKey(keyInfo.participantId)) {
142141
_keys[keyInfo.participantId] = {};
143142
}
144-
logger.info('_setKey for ${keyInfo.participantId}, idx: ${keyInfo.keyIndex}, key: ${base64Encode(keyInfo.key)}');
143+
logger.info('_setKey for ${keyInfo.participantId}, idx: ${keyInfo.keyIndex}');
145144
_keys[keyInfo.participantId]![keyInfo.keyIndex] = keyInfo.key;
146145
_latestSetIndex[keyInfo.participantId] = keyInfo.keyIndex;
147146
await _keyProvider.setKey(

0 commit comments

Comments
 (0)