Fix log line in featurecontrol (#3719)

This commit fixes a log line in the featurecontrol package which
should be "UTF-8 strict mode" and not "UTF-8 mode".

Signed-off-by: George Robinson <george.robinson@grafana.com>
This commit is contained in:
George Robinson 2024-02-13 14:35:03 +00:00 committed by GitHub
parent 2fd1b52c98
commit 604d442f30
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ func NewFlags(logger log.Logger, features string) (Flagger, error) {
level.Warn(logger).Log("msg", "Classic mode enabled") level.Warn(logger).Log("msg", "Classic mode enabled")
case FeatureUTF8StrictMode: case FeatureUTF8StrictMode:
opts = append(opts, enableUTF8StrictMode()) opts = append(opts, enableUTF8StrictMode())
level.Warn(logger).Log("msg", "UTF-8 mode enabled") level.Warn(logger).Log("msg", "UTF-8 strict mode enabled")
default: default:
return nil, fmt.Errorf("Unknown option '%s' for --enable-feature", feature) return nil, fmt.Errorf("Unknown option '%s' for --enable-feature", feature)
} }