File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff 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
110113run ( ) . catch ( Logger . error ) ;
Original file line number Diff line number Diff 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,
You can’t perform that action at this time.
0 commit comments