Skip to content

Debug log for cache type happens before REDIS config is taken into account #73

Description

@brunnels

At this line there's the debug log and it will always say memory:

log.Debug().Str("type", string(cacheConfig.Type)).Msg("Cache initialized")

Then, if redis is configured, it gets setup after the debug log. Please move the debug log after that.

I was beating my head against the wall trying to figure out what I had wrong and the cache wasn't using redis until I looked at the code and realized this was happening.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions