diff --git a/lib/client-api/src/client_api.js b/lib/client-api/src/client_api.js index 2c5991394e00..aef1dbb4ce5d 100644 --- a/lib/client-api/src/client_api.js +++ b/lib/client-api/src/client_api.js @@ -218,7 +218,7 @@ export default class ClientApi { api.addDecorator = decorator => { if (hasAdded) { - console.warn(`You have added a decorator to the kind '${kind}' after a story has already been added. + logger.warn(`You have added a decorator to the kind '${kind}' after a story has already been added. In Storybook 4 this applied the decorator only to subsequent stories. In Storybook 5+ it applies to all stories. This is probably not what you intended. Read more here: https://github.com/storybooks/storybook/blob/master/MIGRATION.md`); }