@@ -115,7 +115,7 @@ extension NCManageDatabase {
115115 realm. add ( addObject, update: . all)
116116 }
117117 } catch let error {
118- NextcloudKit . shared. nkCommonInstance. writeLog ( " Could not write to database: \( error) " )
118+ NextcloudKit . shared. nkCommonInstance. writeLog ( " [ERROR] Could not write to database: \( error) " )
119119 }
120120 }
121121
@@ -127,7 +127,7 @@ extension NCManageDatabase {
127127 realm. add ( account, update: . all)
128128 }
129129 } catch let error {
130- NextcloudKit . shared. nkCommonInstance. writeLog ( " Could not write to database: \( error) " )
130+ NextcloudKit . shared. nkCommonInstance. writeLog ( " [ERROR] Could not write to database: \( error) " )
131131 }
132132 }
133133
@@ -140,7 +140,7 @@ extension NCManageDatabase {
140140 realm. delete ( result)
141141 }
142142 } catch let error {
143- NextcloudKit . shared. nkCommonInstance. writeLog ( " Could not write to database: \( error) " )
143+ NextcloudKit . shared. nkCommonInstance. writeLog ( " [ERROR] Could not write to database: \( error) " )
144144 }
145145 }
146146
@@ -152,7 +152,7 @@ extension NCManageDatabase {
152152 guard let result = realm. objects ( tableAccount. self) . filter ( " active == true " ) . first else { return nil }
153153 return tableAccount. init ( value: result)
154154 } catch let error as NSError {
155- NextcloudKit . shared. nkCommonInstance. writeLog ( " Could not access database: \( error) " )
155+ NextcloudKit . shared. nkCommonInstance. writeLog ( " [ERROR] Could not access database: \( error) " )
156156 }
157157
158158 return nil
@@ -168,7 +168,7 @@ extension NCManageDatabase {
168168 return Array ( results. map { $0. account } )
169169 }
170170 } catch let error as NSError {
171- NextcloudKit . shared. nkCommonInstance. writeLog ( " Could not access database: \( error) " )
171+ NextcloudKit . shared. nkCommonInstance. writeLog ( " [ERROR] Could not access database: \( error) " )
172172 }
173173
174174 return nil
@@ -182,7 +182,7 @@ extension NCManageDatabase {
182182 guard let result = realm. objects ( tableAccount. self) . filter ( predicate) . first else { return nil }
183183 return tableAccount. init ( value: result)
184184 } catch let error as NSError {
185- NextcloudKit . shared. nkCommonInstance. writeLog ( " Could not access database: \( error) " )
185+ NextcloudKit . shared. nkCommonInstance. writeLog ( " [ERROR] Could not access database: \( error) " )
186186 }
187187
188188 return nil
@@ -197,7 +197,7 @@ extension NCManageDatabase {
197197 let results = realm. objects ( tableAccount. self) . sorted ( by: sorted)
198198 return Array ( results. map { tableAccount. init ( value: $0) } )
199199 } catch let error as NSError {
200- NextcloudKit . shared. nkCommonInstance. writeLog ( " Could not access database: \( error) " )
200+ NextcloudKit . shared. nkCommonInstance. writeLog ( " [ERROR] Could not access database: \( error) " )
201201 }
202202
203203 return [ ]
@@ -212,7 +212,7 @@ extension NCManageDatabase {
212212 let results = realm. objects ( tableAccount. self) . sorted ( by: sorted)
213213 return Array ( results. map { tableAccount. init ( value: $0) } )
214214 } catch let error as NSError {
215- NextcloudKit . shared. nkCommonInstance. writeLog ( " Could not access database: \( error) " )
215+ NextcloudKit . shared. nkCommonInstance. writeLog ( " [ERROR] Could not access database: \( error) " )
216216 }
217217
218218 return [ ]
@@ -230,7 +230,7 @@ extension NCManageDatabase {
230230 return result. autoUploadFileName
231231 }
232232 } catch let error as NSError {
233- NextcloudKit . shared. nkCommonInstance. writeLog ( " Could not access database: \( error) " )
233+ NextcloudKit . shared. nkCommonInstance. writeLog ( " [ERROR] Could not access database: \( error) " )
234234 }
235235
236236 return " "
@@ -253,7 +253,7 @@ extension NCManageDatabase {
253253 }
254254 }
255255 } catch let error as NSError {
256- NextcloudKit . shared. nkCommonInstance. writeLog ( " Could not access database: \( error) " )
256+ NextcloudKit . shared. nkCommonInstance. writeLog ( " [ERROR] Could not access database: \( error) " )
257257 }
258258
259259 return " "
@@ -276,7 +276,7 @@ extension NCManageDatabase {
276276 guard let result = realm. objects ( tableAccount. self) . filter ( " active == true " ) . first else { return NCGlobal . shared. subfolderGranularityMonthly }
277277 return result. autoUploadSubfolderGranularity
278278 } catch let error as NSError {
279- NextcloudKit . shared. nkCommonInstance. writeLog ( " Could not access database: \( error) " )
279+ NextcloudKit . shared. nkCommonInstance. writeLog ( " [ERROR] Could not access database: \( error) " )
280280 }
281281
282282 return NCGlobal . shared. subfolderGranularityMonthly
@@ -300,7 +300,7 @@ extension NCManageDatabase {
300300 }
301301 }
302302 } catch let error {
303- NextcloudKit . shared. nkCommonInstance. writeLog ( " Could not write to database: \( error) " )
303+ NextcloudKit . shared. nkCommonInstance. writeLog ( " [ERROR] Could not write to database: \( error) " )
304304 return nil
305305 }
306306
@@ -317,7 +317,7 @@ extension NCManageDatabase {
317317 }
318318 }
319319 } catch let error {
320- NextcloudKit . shared. nkCommonInstance. writeLog ( " Could not write to database: \( error) " )
320+ NextcloudKit . shared. nkCommonInstance. writeLog ( " [ERROR] Could not write to database: \( error) " )
321321 }
322322 }
323323
@@ -333,7 +333,7 @@ extension NCManageDatabase {
333333 }
334334 }
335335 } catch let error {
336- NextcloudKit . shared. nkCommonInstance. writeLog ( " Could not write to database: \( error) " )
336+ NextcloudKit . shared. nkCommonInstance. writeLog ( " [ERROR] Could not write to database: \( error) " )
337337 }
338338 }
339339
@@ -347,7 +347,7 @@ extension NCManageDatabase {
347347 }
348348 }
349349 } catch let error {
350- NextcloudKit . shared. nkCommonInstance. writeLog ( " Could not write to database: \( error) " )
350+ NextcloudKit . shared. nkCommonInstance. writeLog ( " [ERROR] Could not write to database: \( error) " )
351351 }
352352 }
353353
@@ -365,7 +365,7 @@ extension NCManageDatabase {
365365 }
366366 }
367367 } catch let error {
368- NextcloudKit . shared. nkCommonInstance. writeLog ( " Could not write to database: \( error) " )
368+ NextcloudKit . shared. nkCommonInstance. writeLog ( " [ERROR] Could not write to database: \( error) " )
369369 }
370370 }
371371
@@ -383,7 +383,7 @@ extension NCManageDatabase {
383383 }
384384 }
385385 } catch let error {
386- NextcloudKit . shared. nkCommonInstance. writeLog ( " Could not write to database: \( error) " )
386+ NextcloudKit . shared. nkCommonInstance. writeLog ( " [ERROR] Could not write to database: \( error) " )
387387 }
388388 }
389389
@@ -419,7 +419,7 @@ extension NCManageDatabase {
419419 }
420420 }
421421 } catch let error {
422- NextcloudKit . shared. nkCommonInstance. writeLog ( " Could not write to database: \( error) " )
422+ NextcloudKit . shared. nkCommonInstance. writeLog ( " [ERROR] Could not write to database: \( error) " )
423423 }
424424 }
425425
@@ -433,7 +433,7 @@ extension NCManageDatabase {
433433 }
434434 }
435435 } catch let error {
436- NextcloudKit . shared. nkCommonInstance. writeLog ( " Could not write to database: \( error) " )
436+ NextcloudKit . shared. nkCommonInstance. writeLog ( " [ERROR] Could not write to database: \( error) " )
437437 }
438438 }
439439
@@ -453,7 +453,7 @@ extension NCManageDatabase {
453453 }
454454 }
455455 } catch let error {
456- NextcloudKit . shared. nkCommonInstance. writeLog ( " Could not write to database: \( error) " )
456+ NextcloudKit . shared. nkCommonInstance. writeLog ( " [ERROR] Could not write to database: \( error) " )
457457 }
458458 }
459459
@@ -473,7 +473,7 @@ extension NCManageDatabase {
473473 }
474474 }
475475 } catch let error {
476- NextcloudKit . shared. nkCommonInstance. writeLog ( " Could not write to database: \( error) " )
476+ NextcloudKit . shared. nkCommonInstance. writeLog ( " [ERROR] Could not write to database: \( error) " )
477477 }
478478 }
479479}
0 commit comments