Skip to content

Commit acc7872

Browse files
committed
[AUTOMATED]: Prettier Code Styling
1 parent 27d3e3f commit acc7872

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

packages/firestore/src/util/log.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@ export function debug(tag: string, msg: string, ...obj: AnyJs[]): void {
5151
if (logClient.logLevel <= FirebaseLogLevel.DEBUG) {
5252
const time = new Date().toISOString();
5353
const args = obj.map(argToString);
54-
logClient.log(`Firestore (${SDK_VERSION}) ${time} [${tag}]: ${msg}`, ...args);
54+
logClient.log(
55+
`Firestore (${SDK_VERSION}) ${time} [${tag}]: ${msg}`,
56+
...args
57+
);
5558
}
5659
}
5760

packages/logger/src/logger.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,7 @@ export type LogHandler = (
6060
* messages on to their corresponding console counterparts (if the log method
6161
* is supported by the current log level)
6262
*/
63-
const defaultLogHandler: LogHandler = (
64-
instance,
65-
logType,
66-
...args
67-
) => {
63+
const defaultLogHandler: LogHandler = (instance, logType, ...args) => {
6864
if (logType < instance.logLevel) return;
6965
const now = new Date();
7066
switch (logType) {
@@ -91,7 +87,7 @@ export class Logger {
9187
/**
9288
* Gives you an instance of a Logger to capture messages according to
9389
* Firebase's logging scheme.
94-
*
90+
*
9591
* @param name The name that the logs will be associated with
9692
*/
9793
constructor(public name: string) {

0 commit comments

Comments
 (0)