Thanks to visit codestin.com
Credit goes to github.com

Skip to content

AssetsConfiguration always emits warning #8092

@KarelCemus

Description

@KarelCemus

Play Version 2.6.9

API Both

Actual Behavior

  1. start the application
  2. see application log
  3. there is always a warning something like:
08:53:59 [warn] application Using the following cache for assets configuration:
	 enabledCaching = false
	 enabledCacheControl = false
	 defaultCacheControl = public, max-age=3600
	 aggressiveCacheControl = public, max-age=31536000, immutable
	 configuredCacheControl:

I suppose that warning logs should be emitted only when there is something wrong. However, PR #7996 introduced this piece of code, which always logs the current configuration as a warning without any further explanation.

I am wondering why. If this is a feature, it should be documented and I haven't found any note about it, thus it would be a documentation bug. Otherwise, I suggest to either remove the log, make it optional, e.g. through a separate logger, which can be turned off, or at least reduce its level.

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