Skip to content

[Question] Exception handling #52

@BlackBaroness

Description

@BlackBaroness

Hi! Is there a way to disable exception logging? The problem is AsyncCache itself prints the log

try {
    Caffeine.newBuilder().asLoadingCache<Any, Nothing> {
        throw Exception() 
        // exception prints itself "[com.github.benmanes.caffeine.cache.LocalAsyncCache] Exception thrown during asynchronous load"
    }.get(Unit)
} catch(Throwable e) {
    // we also get the exception here
}

Of course we can disable the whole Caffeine logging via logger configuration, but it would be nice to just avoid logging somehow

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions