Skip to content

Commit 27e2561

Browse files
committed
art: change console -> logger
1 parent 95e5513 commit 27e2561

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/commands/serve/index.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ module.exports = function serveCommand(api, opts) {
226226
before(app, server) {
227227
// launch editor support.
228228
// this works with vue-devtools & @vue/cli-overlay
229-
app.use('/__open-in-editor', launchEditorMiddleware(() => console.log(
229+
app.use('/__open-in-editor', launchEditorMiddleware(() => logger.info(
230230
'To specify an editor, specify the EDITOR env variable or ' +
231231
'add "editor" field to your Vue project config.\n'
232232
)));
@@ -290,26 +290,26 @@ module.exports = function serveCommand(api, opts) {
290290
? publicUrl.replace(/([^/])$/, '$1/')
291291
: urls.lanUrlForTerminal;
292292

293-
console.log();
293+
logger.info();
294294
logger.info(' App running at:');
295295
logger.info(` - Local: ${chalk.cyan(urls.localUrlForTerminal)} ${copied}`);
296296
if (!isInContainer) {
297297
logger.info(` - Network: ${chalk.cyan(networkUrl)}`);
298298
} else {
299-
console.log();
299+
logger.info();
300300
logger.warn(' It seems you are running Vue CLI inside a container.');
301301
if (!publicUrl && options.publicPath && options.publicPath !== '/') {
302-
console.log();
302+
logger.info();
303303
logger.warn(' Since you are using a non-root publicPath, the hot-reload socket');
304304
logger.warn(' will not be able to infer the correct URL to connect. You should');
305305
logger.warn(` explicitly specify the URL via ${chalk.blue('devServer.public')}.`);
306-
console.log();
306+
logger.info();
307307
}
308308
logger.warn(` Access the dev server via ${chalk.cyan(
309309
`${protocol}://localhost:<your container's external mapped port>${options.publicPath}`
310310
)}`);
311311
}
312-
console.log();
312+
logger.info();
313313

314314
if (isFirstCompile) {
315315
isFirstCompile = false;
@@ -322,7 +322,7 @@ module.exports = function serveCommand(api, opts) {
322322
logger.info(' App is served in production mode.');
323323
logger.info(' Note this is for preview or E2E testing only.');
324324
}
325-
console.log();
325+
logger.info();
326326

327327
if (args.open || projectDevServerOptions.open) {
328328
const pageUri = (projectDevServerOptions.openPage && typeof projectDevServerOptions.openPage === 'string')

0 commit comments

Comments
 (0)