Skip to content

chore: Add info how to remove LLD #77

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/lldebugger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ async function run() {

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

run().catch(Logger.error);
12 changes: 12 additions & 0 deletions src/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,17 @@ function warn(...args: any[]) {
console.warn(...args);
}

/**
* Log an info message in green
* @param args The arguments to log
*/
function info(...args: any[]) {
args = args.map((arg) =>
typeof arg === 'string' ? chalk.greenBright(arg) : arg,
);
console.info(...args);
}

/**
* Log a verbose message if verbose is enabled. Log the message in grey.
* @param args The arguments to log
Expand All @@ -68,6 +79,7 @@ export const Logger = {
error,
warn,
important,
info,
verbose,
setVerbose,
};
Loading