Change log level of Metamaps.Debug (#1170)

debug log level is invisible in Chrome by default, which is confusing
This commit is contained in:
Devin Howard 2018-02-05 21:35:53 -08:00 committed by GitHub
parent fdcd8a93f1
commit 955ebdd747
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,9 +1,9 @@
const Debug = function(arg = window.Metamaps) {
if (arg === undefined && typeof window !== 'undefined') arg = window.Metamaps
console.debug(arg)
console.debug(`Metamaps Version: ${arg.ServerData.VERSION}`)
console.debug(`Build: ${arg.ServerData.BUILD}`)
console.debug(`Last Updated: ${arg.ServerData.LAST_UPDATED}`)
console.log(arg)
console.log(`Metamaps Version: ${arg.ServerData.VERSION}`)
console.log(`Build: ${arg.ServerData.BUILD}`)
console.log(`Last Updated: ${arg.ServerData.LAST_UPDATED}`)
}
export default Debug