feat(meta): Remove log redaction

This commit is contained in:
2023-04-02 14:38:32 +02:00
parent b354ca8d0a
commit 29f0419154
9 changed files with 21 additions and 26 deletions

View File

@@ -18,9 +18,10 @@ Future<void> _runTest(String domain) async {
TestingReconnectionPolicy(),
AlwaysConnectedConnectivityManager(),
socket,
)..registerFeatureNegotiators([
StartTlsNegotiator(),
]);
);
await connection.registerFeatureNegotiators([
StartTlsNegotiator(),
]);
await connection.registerManagers([
DiscoManager([]),
RosterManager(TestingRosterStateManager('', [])),

View File

@@ -19,9 +19,10 @@ void main() {
TestingSleepReconnectionPolicy(10),
AlwaysConnectedConnectivityManager(),
TCPSocketWrapper(),
)..registerFeatureNegotiators([
StartTlsNegotiator(),
]);
);
await connection.registerFeatureNegotiators([
StartTlsNegotiator(),
]);
await connection.registerManagers([
DiscoManager([]),
RosterManager(TestingRosterStateManager('', [])),
@@ -68,9 +69,10 @@ void main() {
TestingReconnectionPolicy(),
AlwaysConnectedConnectivityManager(),
TCPSocketWrapper(),
)..registerFeatureNegotiators([
StartTlsNegotiator(),
]);
);
await connection.registerFeatureNegotiators([
StartTlsNegotiator(),
]);
await connection.registerManagers([
DiscoManager([]),
RosterManager(TestingRosterStateManager('', [])),

View File

@@ -289,17 +289,13 @@ class TCPSocketWrapper extends BaseSocketWrapper {
_eventStream.stream.asBroadcastStream();
@override
void write(String data, {String? redact}) {
void write(String data) {
if (_socket == null) {
_log.severe('Failed to write to socket as _socket is null');
return;
}
if (redact != null) {
_log.finest('**> $redact');
} else {
_log.finest('==> $data');
}
_log.finest('==> $data');
try {
_socket!.write(data);