File tree Expand file tree Collapse file tree 7 files changed +10
-19
lines changed
Expand file tree Collapse file tree 7 files changed +10
-19
lines changed Original file line number Diff line number Diff line change @@ -254,11 +254,10 @@ class GoogleTasksBackendExtension extends TaskBackend {
254254 }
255255
256256 localStorage . setItem ( this . dataKey , JSON . stringify ( this . data ) )
257- console . log ( 'Google Tasks sync complete:' , this . data )
258257
259258 return this . data
260259 } catch ( error ) {
261- console . error ( 'Google Tasks sync error :' , error )
260+ console . error ( 'google tasks sync failed :' , error )
262261 throw error
263262 }
264263 }
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ class LocalStorageBackend extends TaskBackend {
2121 try {
2222 return JSON . parse ( stored )
2323 } catch ( error ) {
24- console . error ( 'Failed to parse local tasks:' , error )
24+ console . error ( 'failed to parse local tasks:' , error )
2525 return { items : [ ] }
2626 }
2727 }
Original file line number Diff line number Diff line change @@ -46,12 +46,9 @@ class TodoistBackend extends TaskBackend {
4646 this . syncToken = data . sync_token
4747 localStorage . setItem ( this . syncTokenKey , this . syncToken )
4848
49- console . log ( data )
50-
5149 return data
5250 } catch ( error ) {
5351 if ( ! isRetry && this . syncToken !== '*' ) {
54- console . log ( 'retrying with full sync...' )
5552 this . syncToken = '*'
5653 localStorage . setItem ( this . syncTokenKey , this . syncToken )
5754 return this . sync ( resourceTypes , true )
@@ -312,8 +309,6 @@ class TodoistBackend extends TaskBackend {
312309
313310 const data = await response . json ( )
314311
315- console . log ( data )
316-
317312 return data
318313 }
319314
Original file line number Diff line number Diff line change 3535 settings .googleTasksSignedIn = true
3636 saveSettings (settings)
3737 } catch (err) {
38- console .error (' Google sign- in error :' , err)
38+ console .error (' google sign in failed :' , err)
3939 signInError = ' sign in failed'
4040 settings .googleTasksSignedIn = false
4141 } finally {
5454 saveSettings (settings)
5555 signInError = ' '
5656 } catch (err) {
57- console .error (' Google sign- out error :' , err)
57+ console .error (' google sign out failed :' , err)
5858 }
5959 }
6060
Original file line number Diff line number Diff line change 137137 await loadTasks (true )
138138 } catch (err) {
139139 error = ` failed to initialize ${ backend} backend`
140- console .error (err)
140+ console .error (' backend init failed: ' , err)
141141 syncing = false
142142 }
143143 }
172172 } else {
173173 error = ` failed to sync tasks`
174174 }
175- console .error (err)
175+ console .error (' task sync failed: ' , err)
176176 } finally {
177177 if (showSyncing) syncing = false
178178 }
207207 newTaskContent = ' '
208208 await loadTasks ()
209209 } catch (err) {
210- console .error (' Failed to add task:' , err)
210+ console .error (' failed to add task:' , err)
211211 } finally {
212212 addingTask = false
213213 }
239239 }
240240 await loadTasks ()
241241 } catch (err) {
242- console .error (err)
242+ console .error (' task toggle failed: ' , err)
243243 await loadTasks ()
244244 } finally {
245245 togglingTasks .delete (taskId)
253253 await api .deleteTask (taskId)
254254 await loadTasks ()
255255 } catch (err) {
256- console .error (' Failed to delete task:' , err)
256+ console .error (' failed to delete task:' , err)
257257 await loadTasks ()
258258 }
259259 }
Original file line number Diff line number Diff line change 4141 dateFormat: settings .dateFormat ,
4242 })
4343 parsedDate = parsed
44- if (parsed) {
45- console .log (' Parsed date:' , parsed)
46- }
4744 })
4845
4946 async function initializeAPI (token , clearLocalData = false ) {
Original file line number Diff line number Diff line change 114114 forecast = data .forecast
115115 } catch (err) {
116116 error = ' failed to load weather'
117- console .error (err)
117+ console .error (' weather load failed: ' , err)
118118 } finally {
119119 loading = false
120120 }
You can’t perform that action at this time.
0 commit comments