mirror of
https://github.com/nasa/openmct.git
synced 2025-03-20 02:55:18 +00:00
log reqs
This commit is contained in:
parent
7a7ab059be
commit
15d43d3855
@ -30,6 +30,12 @@ import Transaction from './Transaction';
|
||||
import ConflictError from './ConflictError';
|
||||
import InMemorySearchProvider from './InMemorySearchProvider';
|
||||
|
||||
|
||||
const requests = {};
|
||||
window.showRequests = () => {
|
||||
console.log(requests);
|
||||
}
|
||||
|
||||
/**
|
||||
* Uniquely identifies a domain object.
|
||||
*
|
||||
@ -190,6 +196,11 @@ export default class ObjectAPI {
|
||||
*/
|
||||
|
||||
get(identifier, abortSignal) {
|
||||
if (!requests[identifier]) {
|
||||
requests[identifier] = 0;
|
||||
}
|
||||
requests[identifier]++;
|
||||
|
||||
let keystring = this.makeKeyString(identifier);
|
||||
console.log('openmct get', keystring);
|
||||
const now = new Date();
|
||||
|
Loading…
x
Reference in New Issue
Block a user