We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c0e474 commit 7f2e622Copy full SHA for 7f2e622
src/index.ts
@@ -62,10 +62,10 @@ class ServerlessAWSSecret {
62
this.options.verbose = this.options.verbose ?? false;
63
}
64
65
- setLogger(options: ServerlessOptions) {
+ setLogger(options?: ServerlessOptions) {
66
this.log = {
67
- verbose: options.log?.verbose ?? this.options.verbose ? console.log : () => {},
68
- success: options.log?.success ?? console.log,
+ verbose: options?.log?.verbose ?? this.options.verbose ? console.log : () => {},
+ success: options?.log?.success ?? console.log,
69
};
70
71
0 commit comments