mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 09:22:43 +03:00
18 lines
478 B
JavaScript
18 lines
478 B
JavaScript
var log = true;
|
|
|
|
function logThis (title, message) {
|
|
if (log) {
|
|
if (title === undefined && message === undefined) {
|
|
console.log('Something was logged')
|
|
}else if (message === undefined) {
|
|
console.log(`${title} -> ${message}`)
|
|
}else if (title === undefined) {
|
|
console.log(`${title} -> ${message}`)
|
|
}else {
|
|
console.log(`${title} -> ${message}`)
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
module.exports = logThis |