                 }
             #endif
         } catch let error as NSError {
-            SentryLog.Debug.log(error.localizedDescription)
+            SentryLog.Error.log(error.localizedDescription)
         }
         return []
     }

                        })
                }
            #else
                return try NSFileManager.defaultManager()
                    .contentsOfDirectoryAtPath(path)
                    .filter { fileName in

    private func deleteEmptyFolderAtPath(_ path: String) {
        do {
            #if swift(>=3.0)
                guard FileManager.default.fileExists(atPath: path) else { return }
                guard try FileManager.default.contentsOfDirectory(atPath: path).count == 0 else { return }
                try FileManager.default.removeItem(atPath: path)
            #else
                guard NSFileManager.defaultManager().fileExistsAtPath(path) else { return }
                guard try NSFileManager.defaultManager().contentsOfDirectoryAtPath(path).count == 0 else { return }
                try NSFileManager.defaultManager().removeItemAtPath(path)
            #endif
        } catch let error as NSError {
            SentryLog.Error.log(error.localizedDescription)
        }
    }
    
