Skip to content

Commit b809609

Browse files
committed
Tag logs in LibraryViewModel
1 parent 8c2b5e9 commit b809609

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/src/main/java/com/OxGames/Pluvia/ui/model/LibraryViewModel.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class LibraryViewModel @Inject constructor(
4343
steamAppDao.getAllOwnedApps(
4444
ownerIds = SteamService.familyMembers.ifEmpty { listOf(SteamService.userSteamId!!.accountID.toInt()) },
4545
).collect { apps ->
46-
Timber.d("Collecting ${apps.size} apps")
46+
Timber.tag("LibraryViewModel").d("Collecting ${apps.size} apps")
4747

4848
appList = apps
4949

@@ -88,7 +88,7 @@ class LibraryViewModel @Inject constructor(
8888
}
8989

9090
private fun onFilterApps() {
91-
Timber.d("onFilterApps")
91+
Timber.tag("LibraryViewModel").d("onFilterApps")
9292
viewModelScope.launch {
9393
val currentState = _state.value
9494
val currentFilter = AppFilter.getAppType(currentState.appInfoSortType)
@@ -130,7 +130,7 @@ class LibraryViewModel @Inject constructor(
130130
}
131131
.toList()
132132

133-
Timber.d("Filtered list size: ${filteredList.size}")
133+
Timber.tag("LibraryViewModel").d("Filtered list size: ${filteredList.size}")
134134
_state.update { it.copy(appInfoList = filteredList) }
135135
}
136136
}

0 commit comments

Comments
 (0)