Skip to content

Commit

Permalink
Emit info log when using custom registry URL
Browse files Browse the repository at this point in the history
  • Loading branch information
jen-huang committed Oct 15, 2020
1 parent aec1eb0 commit 2c06cdb
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@ const getDefaultRegistryUrl = (): string => {
}
};

// Custom registry URL is currently only for internal Elastic development and is unsupported
export const getRegistryUrl = (): string => {
const customUrl = appContextService.getConfig()?.registryUrl;
const isEnterprise = licenseService.isEnterprise();

if (customUrl && isEnterprise) {
appContextService
.getLogger()
.info('Custom registry url is an experimental feature and is unsupported.');
return customUrl;
}

Expand Down

0 comments on commit 2c06cdb

Please sign in to comment.