Fix logging in util/deprecated.ts

This commit is contained in:
Fedor Indutny 2021-07-12 17:43:56 -07:00 committed by GitHub
parent 5da5ffe504
commit 20ea409d9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -6,6 +6,6 @@ import * as log from '../logging/log';
export function deprecated(message?: string): void {
if (getEnvironment() === Environment.Development) {
log.error(new Error(`This method is deprecated: ${message}`));
log.error(`This method is deprecated: ${message}`);
}
}