Skip to content

Commit e7dcabc

Browse files
chore: Add info how to remove LLD (#77)
1 parent 6227d90 commit e7dcabc

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/lldebugger.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ async function run() {
105105

106106
await LambdaConnection.connect();
107107
Logger.log('Debugger started!');
108+
Logger.info(
109+
`When you want to stop debugging and return to normal execution, type command 'lld -r' to remove LLD Layer from the functions.`,
110+
);
108111
}
109112

110113
run().catch(Logger.error);

src/logger.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,17 @@ function warn(...args: any[]) {
4444
console.warn(...args);
4545
}
4646

47+
/**
48+
* Log an info message in green
49+
* @param args The arguments to log
50+
*/
51+
function info(...args: any[]) {
52+
args = args.map((arg) =>
53+
typeof arg === 'string' ? chalk.greenBright(arg) : arg,
54+
);
55+
console.info(...args);
56+
}
57+
4758
/**
4859
* Log a verbose message if verbose is enabled. Log the message in grey.
4960
* @param args The arguments to log
@@ -76,6 +87,7 @@ export const Logger = {
7687
error,
7788
warn,
7889
important,
90+
info,
7991
verbose,
8092
setVerbose,
8193
isVerbose,

0 commit comments

Comments
 (0)