Include app name in deprecation warnings (#1750)

This commit is contained in:
altrisi authored and GitHub committed 2023-06-26 17:59:57 +02:00
1 parent 22f31a7b51
commit cce52f3ed1
2 files changed
+2 -2

No files matched your search

@@ -1210,7 +1210,7 @@ public class CarpetScriptHost extends ScriptHost
{ {
if (super.issueDeprecation(feature)) if (super.issueDeprecation(feature))
{ {
Carpet.Messenger_message(responsibleSource, "rb '" + feature + "' is deprecated and soon will be removed. Please consult the docs for their replacement"); Carpet.Messenger_message(responsibleSource, "rb App '" +getName() + "' uses '" + feature + "', which is deprecated for removal. Check the docs for a replacement");
return true; return true;
} }
return false; return false;
+1 -1
View File
@@ -551,7 +551,7 @@ public abstract class ScriptHost
return false; return false;
} }
deprecations.add(feature); deprecations.add(feature);
DEPRECATION_LOG.warn("'" + feature + "' is deprecated and soon will be removed. Please consult the docs for their replacement"); DEPRECATION_LOG.warn("App '" + getName() + "' uses '" + feature + "', which is deprecated for removal. Check the docs for a replacement");
return true; return true;
} }