Skip to content

Commit

Permalink
Use console.trace instead of console.log for deprecation message (#71)
Browse files Browse the repository at this point in the history
This makes it easier to identify where the calls are coming from
  • Loading branch information
extremeheat authored Aug 26, 2023
1 parent b695c87 commit 7262fcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ module.exports = (registryOrVersion) => {
return Entity
}
function printMobTypeWarning () {
console.log('Warning: entity.mobType is deprecated. Use entity.displayName instead')
console.trace('Warning: entity.mobType is deprecated. Use entity.displayName instead')
}
function printObjectTypeWarning () {
console.log('Warning: entity.objectType is deprecated. Use entity.displayName instead')
console.trace('Warning: entity.objectType is deprecated. Use entity.displayName instead')
}

0 comments on commit 7262fcf

Please sign in to comment.