Skip to content

Commit 0deac47

Browse files
authored
Fix linter error.
1 parent 152d579 commit 0deac47

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/logger/index.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
// SOFTWARE.
2222

23-
import { format } from "util";
24-
import { traceContext } from "../common/trace";
23+
import {format} from "util";
24+
import {traceContext} from "../common/trace";
2525

26-
import { CONSOLE_SEVERITY, UNPATCHED_CONSOLE } from "./common";
26+
import {CONSOLE_SEVERITY, UNPATCHED_CONSOLE} from "./common";
2727

2828
/**
2929
* `LogSeverity` indicates the detailed severity of the log entry. See [LogSeverity](https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry#logseverity).
@@ -89,9 +89,11 @@ function removeCircular(obj: any, refs: any[] = []): any {
8989
export function write(entry: LogEntry) {
9090
const ctx = traceContext.getStore();
9191
if (ctx?.traceId) {
92-
entry["logging.googleapis.com/trace"] = `projects/${process.env.GCLOUD_PROJECT}/traces/${ctx.traceId}`;
92+
entry[
93+
"logging.googleapis.com/trace"
94+
] = `projects/${process.env.GCLOUD_PROJECT}/traces/${ctx.traceId}`;
9395
}
94-
96+
9597
UNPATCHED_CONSOLE[CONSOLE_SEVERITY[entry.severity]](JSON.stringify(removeCircular(entry)));
9698
}
9799

0 commit comments

Comments
 (0)