File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -94,9 +94,7 @@ export function write(entry: LogEntry) {
94
94
] = `projects/${ process . env . GCLOUD_PROJECT } /traces/${ ctx . traceId } ` ;
95
95
}
96
96
97
- UNPATCHED_CONSOLE [ CONSOLE_SEVERITY [ entry . severity ] ] (
98
- JSON . stringify ( removeCircular ( entry ) )
99
- ) ;
97
+ UNPATCHED_CONSOLE [ CONSOLE_SEVERITY [ entry . severity ] ] ( JSON . stringify ( removeCircular ( entry ) ) ) ;
100
98
}
101
99
102
100
/**
@@ -153,11 +151,7 @@ export function error(...args: any[]) {
153
151
function entryFromArgs ( severity : LogSeverity , args : any [ ] ) : LogEntry {
154
152
let entry = { } ;
155
153
const lastArg = args [ args . length - 1 ] ;
156
- if (
157
- lastArg &&
158
- typeof lastArg === "object" &&
159
- lastArg . constructor === Object
160
- ) {
154
+ if ( lastArg && typeof lastArg === "object" && lastArg . constructor === Object ) {
161
155
entry = args . pop ( ) ;
162
156
}
163
157
You can’t perform that action at this time.
0 commit comments