mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 04:09:49 +00:00
Fix logging in util/deprecated.ts
This commit is contained in:
@@ -6,6 +6,6 @@ import * as log from '../logging/log';
|
|||||||
|
|
||||||
export function deprecated(message?: string): void {
|
export function deprecated(message?: string): void {
|
||||||
if (getEnvironment() === Environment.Development) {
|
if (getEnvironment() === Environment.Development) {
|
||||||
log.error(new Error(`This method is deprecated: ${message}`));
|
log.error(`This method is deprecated: ${message}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user