mirror of
https://github.com/discourse/discourse.git
synced 2026-08-08 20:18:23 -05:00
Revert "DEV: Prefix deprecation notices and api warnings with theme name/id" (#15902)
This reverts commita4ff69bd99. Follow-up to8e5b945b0f
This commit is contained in:
@@ -11,11 +11,5 @@ export default function deprecated(msg, opts = {}) {
|
||||
if (opts.raiseError) {
|
||||
throw msg;
|
||||
}
|
||||
|
||||
// Using deferred `require` because this is discourse-specific logic which
|
||||
// we don't want to run in pretty-text/wizard/etc.
|
||||
const consolePrefix =
|
||||
require("discourse/lib/source-identifier")?.consolePrefix() || "";
|
||||
|
||||
console.warn(consolePrefix, msg); //eslint-disable-line no-console
|
||||
console.warn(msg); // eslint-disable-line no-console
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user