Skip to content

Commit

Permalink
fix: Yellow warning message (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
ServerlessLife authored Oct 1, 2024
1 parent 455f105 commit dc99c79
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ If you have a new feature idea, please create and issue.
(alphabetical)

- [Roger Chi](https://rogerchi.com/)
- [Sebastian Bille](https://blog.sebastianbille.com)
- ⭐ Your name here for notable code or documentation contributions or sample projects submitted with a bug report that resulted in tool improvement.

## Disclaimer
Expand Down
3 changes: 0 additions & 3 deletions src/lldebugger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ async function run() {
const version = await getVersion();

Logger.log(`Welcome to Lambda Live Debugger 🐞 version ${version}.`);
Logger.important(
'To keep the project moving forward, please fill out the feedback form at https://forms.gle/v6ekZtuB45Rv3EyW9. Your input is greatly appreciated!',
);

await Configuration.readConfig();

Expand Down
11 changes: 2 additions & 9 deletions src/logger.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import chalk from 'chalk';

const orange = '#D24E01';
let verboseEnabled = false;

/**
Expand All @@ -23,11 +22,7 @@ function log(...args: any[]) {
* @param args The arguments to log
*/
function important(...args: any[]) {
args = args.map((arg) =>
typeof arg === 'string'
? chalk.bold(chalk.bgMagenta(chalk.black(arg)))
: arg,
);
args = args.map((arg) => (typeof arg === 'string' ? chalk.yellow(arg) : arg));
console.log(...args);
}

Expand All @@ -45,9 +40,7 @@ function error(...args: any[]) {
* @param args The arguments to log
*/
function warn(...args: any[]) {
args = args.map((arg) =>
typeof arg === 'string' ? chalk.hex(orange)(arg) : arg,
);
args = args.map((arg) => (typeof arg === 'string' ? chalk.yellow(arg) : arg));
console.warn(...args);
}

Expand Down

0 comments on commit dc99c79

Please sign in to comment.