Skip to content

Commit

Permalink
fix(clients): use default no-op logger to preserve type safety (#4172)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuhe committed Nov 11, 2022
1 parent 24ec718 commit d1774f3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/smithy-client/src/NoOpLogger.ts
@@ -0,0 +1,9 @@
import { Logger } from "@aws-sdk/types";

export class NoOpLogger implements Logger {
public trace() {}
public debug() {}
public info() {}
public warn() {}
public error() {}
}
1 change: 1 addition & 0 deletions packages/smithy-client/src/index.ts
@@ -1,3 +1,4 @@
export * from "./NoOpLogger";
export * from "./client";
export * from "./command";
export * from "./constants";
Expand Down

0 comments on commit d1774f3

Please sign in to comment.