fix(cache): use app-private image cache
This commit is contained in:
@@ -287,10 +287,17 @@ FutureOr<SentryEvent?> _beforeSend(SentryEvent event, Hint _) {
|
||||
if (exceptions != null) {
|
||||
bool shouldDrop(SentryException e) {
|
||||
final v = e.value;
|
||||
final lowerValue = v?.toLowerCase();
|
||||
// Windows file-lock errors from cache manager cleanup
|
||||
if (e.type == 'FileSystemException' && v != null && v.contains('plexImageCache') && v.contains('errno = 32')) {
|
||||
return true;
|
||||
}
|
||||
if (e.type == 'FileSystemException' &&
|
||||
lowerValue != null &&
|
||||
lowerValue.contains('cached_network_image_ce') &&
|
||||
(lowerValue.contains('lock failed') || lowerValue.contains('writefrom failed'))) {
|
||||
return true;
|
||||
}
|
||||
// Linux without DBus/NetworkManager
|
||||
if (e.type == 'DBusServiceUnknownException' || (v != null && v.contains('system_bus_socket'))) {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user