From 59b3038b9b245a8cfd4ed948b2856937d249689b Mon Sep 17 00:00:00 2001 From: Gazook89 Date: Fri, 29 Mar 2024 20:42:07 -0500 Subject: [PATCH] small style changes to terminal output of server start --- server.js | 5 +++-- server/googleActions.js | 6 ++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/server.js b/server.js index 0323fb068..39224bb88 100644 --- a/server.js +++ b/server.js @@ -12,8 +12,9 @@ DB.connect(config).then(()=>{ const cyan = '\x1b[36m'; // Cyan color const underline = '\x1b[4m'; // Underlined style - console.log(`\n\tserver on port: ${PORT}`); - console.log(`\t${underline}${bright}${cyan}Open in browser: http://localhost:${PORT}${reset}`) + console.log(`\n\tserver started at: ${new Date().toLocaleString()}`); + console.log(`\tserver on port: ${PORT}`); + console.log(`\t${bright + cyan}Open in browser: ${reset}${underline + bright + cyan}http://localhost:${PORT}${reset}\n\n`) }); }); diff --git a/server/googleActions.js b/server/googleActions.js index a5ff61d62..16537d603 100644 --- a/server/googleActions.js +++ b/server/googleActions.js @@ -7,7 +7,9 @@ const config = require('./config.js'); let serviceAuth; if(!config.get('service_account')){ - console.log('No Google Service Account in config files - Google Drive integration will not be available.'); + const reset = '\x1b[0m'; // Reset to default style + const yellow = '\x1b[33m'; // yellow color + console.warn(`\n${yellow}No Google Service Account in config files - Google Drive integration will not be available.${reset}`); } else { const keys = typeof(config.get('service_account')) == 'string' ? JSON.parse(config.get('service_account')) : @@ -18,7 +20,7 @@ if(!config.get('service_account')){ serviceAuth.scopes = ['https://www.googleapis.com/auth/drive']; } catch (err) { console.warn(err); - console.log('Please make sure the Google Service Account is set up properly in your config files.'); + console.warn('Please make sure the Google Service Account is set up properly in your config files.'); } }