You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
Replace console.warn with logger.warn
Related https://github.com/vector-im/element-web/issues/18425
This commit is contained in:
committed by
Dariusz Niemczyk
parent
5e73a212f4
commit
5290afcc4c
@@ -16,6 +16,8 @@ limitations under the License.
|
||||
|
||||
import { PerformanceEntryNames } from "./entry-names";
|
||||
|
||||
import { logger } from "matrix-js-sdk/src/logger";
|
||||
|
||||
interface GetEntriesOptions {
|
||||
name?: string;
|
||||
type?: string;
|
||||
@@ -57,7 +59,7 @@ export default class PerformanceMonitor {
|
||||
const key = this.buildKey(name, id);
|
||||
|
||||
if (performance.getEntriesByName(this.START_PREFIX + key).length > 0) {
|
||||
console.warn(`Recording already started for: ${name}`);
|
||||
logger.warn(`Recording already started for: ${name}`);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -77,7 +79,7 @@ export default class PerformanceMonitor {
|
||||
}
|
||||
const key = this.buildKey(name, id);
|
||||
if (performance.getEntriesByName(this.START_PREFIX + key).length === 0) {
|
||||
console.warn(`No recording started for: ${name}`);
|
||||
logger.warn(`No recording started for: ${name}`);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user