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() {
105
105
106
106
await LambdaConnection . connect ( ) ;
107
107
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
+ ) ;
108
111
}
109
112
110
113
run ( ) . catch ( Logger . error ) ;
Original file line number Diff line number Diff line change @@ -44,6 +44,17 @@ function warn(...args: any[]) {
44
44
console . warn ( ...args ) ;
45
45
}
46
46
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
+
47
58
/**
48
59
* Log a verbose message if verbose is enabled. Log the message in grey.
49
60
* @param args The arguments to log
@@ -76,6 +87,7 @@ export const Logger = {
76
87
error,
77
88
warn,
78
89
important,
90
+ info,
79
91
verbose,
80
92
setVerbose,
81
93
isVerbose,
You can’t perform that action at this time.
0 commit comments