Change info logs

This commit is contained in:
problematicconsumer
2023-10-26 20:37:58 +03:30
parent 65c871eef3
commit 7679126b95
3 changed files with 44 additions and 23 deletions

View File

@@ -48,9 +48,10 @@ class ConnectivityController extends _$ConnectivityController with AppLogger {
Future<void> reconnect(String? profileId) async {
if (state case AsyncData(:final value) when value == const Connected()) {
if (profileId == null) {
loggy.info("no active profile, disconnecting");
return _disconnect();
}
loggy.debug("reconnecting, profile: [$profileId]");
loggy.info("active profile changed, reconnecting");
await _core
.restart(profileId, ref.read(disableMemoryLimitProvider))
.mapLeft((err) {