Better api logs
This commit is contained in:
parent
f144c986b7
commit
e36dda74db
1 changed files with 3 additions and 2 deletions
|
|
@ -92,12 +92,13 @@ Meteor.startup(() => {
|
|||
check(km, NumberBetween(0, 100));
|
||||
check(token, String);
|
||||
|
||||
console.log(`Query for fires in ${lat}, ${lng} in ${km} km radius`);
|
||||
|
||||
if (token !== Meteor.settings.private.internalApiToken) {
|
||||
console.warn(`WARNING: Query for fires in ${lat}, ${lng} in ${km} km radius with wrong token`);
|
||||
return {};
|
||||
}
|
||||
|
||||
console.log(`Query for fires in ${lat}, ${lng} in ${km} km radius`);
|
||||
|
||||
const fires = ActiveFiresCollection.find({
|
||||
ourid: {
|
||||
$near: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue