@@ -50,10 +50,9 @@ export async function getInstalledGames() {
50
50
const steamLibraries = await getSteamLibraries ( )
51
51
const steamAppsDirs = steamLibraries . map ( ( lib ) => path . join ( lib , 'steamapps' ) )
52
52
53
- console . log (
54
- 'Steam apps directories: ------------------------------->' ,
55
- steamAppsDirs
56
- )
53
+ logDebug ( [ 'Steam libraries found:' , steamAppsDirs . join ( ', ' ) ] , {
54
+ prefix : LogPrefix . Steam
55
+ } )
57
56
58
57
installed . clear ( )
59
58
for ( const steamApps of steamAppsDirs ) {
@@ -97,23 +96,13 @@ export async function refresh(): Promise<null> {
97
96
return acc
98
97
} , [ ] as Array < SteamLoginUser > )
99
98
100
- console . log (
101
- 'Steam users: ------------------------------->' ,
102
- steamUsers ,
103
- enabledSteamUsers
104
- )
105
-
106
99
libraryCache . get ( 'games' , [ ] ) . forEach ( ( game ) => {
107
100
library . set ( game . app_name , game )
108
101
} )
109
102
110
103
await getInstalledGames ( )
111
104
// Get all user owned games
112
105
113
- console . log (
114
- 'Installed games: ------------------------------->' ,
115
- installed . size
116
- )
117
106
if ( ! isOnline ( ) ) {
118
107
logDebug ( 'App offline, skipping steam sync' , { prefix : LogPrefix . Steam } )
119
108
return null
@@ -127,10 +116,6 @@ export async function refresh(): Promise<null> {
127
116
if ( ! ownedGames ?. length ) {
128
117
continue
129
118
}
130
- console . log (
131
- 'Owned games: ------------------------------->' ,
132
- ownedGames . length
133
- )
134
119
apiInfoCache . use_in_memory ( )
135
120
for ( const steamGame of ownedGames ) {
136
121
if ( ignoredAppIds . includes ( steamGame . appid . toString ( ) ) ) {
@@ -158,11 +143,6 @@ export async function refresh(): Promise<null> {
158
143
}
159
144
}
160
145
161
- console . log (
162
- 'New game object: ------------------------------->' ,
163
- newGameObject
164
- )
165
-
166
146
const installedGame = installed . get ( steamGame . appid . toString ( ) )
167
147
if ( installedGame ) {
168
148
newGameObject . is_installed = true
0 commit comments