Skip to content

Commit 7262fcf

Browse files
authored
Use console.trace instead of console.log for deprecation message (#71)
This makes it easier to identify where the calls are coming from
1 parent b695c87 commit 7262fcf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ module.exports = (registryOrVersion) => {
6868
return Entity
6969
}
7070
function printMobTypeWarning () {
71-
console.log('Warning: entity.mobType is deprecated. Use entity.displayName instead')
71+
console.trace('Warning: entity.mobType is deprecated. Use entity.displayName instead')
7272
}
7373
function printObjectTypeWarning () {
74-
console.log('Warning: entity.objectType is deprecated. Use entity.displayName instead')
74+
console.trace('Warning: entity.objectType is deprecated. Use entity.displayName instead')
7575
}

0 commit comments

Comments
 (0)