Include app name in deprecation warnings (#1750)
This commit is contained in:
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;
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user