diff --git a/ts/util/deprecated.ts b/ts/util/deprecated.ts index e24f26378..e40c6c457 100644 --- a/ts/util/deprecated.ts +++ b/ts/util/deprecated.ts @@ -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}`); } }