logging
This commit is contained in:
parent
462ab63e97
commit
b3a6fe0256
@ -19,8 +19,8 @@
|
||||
<file pinned="false" current-in-tab="true">
|
||||
<entry file="file://$PROJECT_DIR$/server.js">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="234">
|
||||
<caret line="13" column="7" selection-start-line="13" selection-start-column="7" selection-end-line="13" selection-end-column="7" />
|
||||
<state relative-caret-position="527">
|
||||
<caret line="43" column="26" selection-start-line="43" selection-start-column="14" selection-end-line="43" selection-end-column="26" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
@ -102,7 +102,8 @@
|
||||
<updated>1543421465265</updated>
|
||||
<workItem from="1543421466837" duration="1355000" />
|
||||
<workItem from="1543432401089" duration="3578000" />
|
||||
<workItem from="1544053295853" duration="1097000" />
|
||||
<workItem from="1544053295853" duration="1669000" />
|
||||
<workItem from="1550673709461" duration="312000" />
|
||||
</task>
|
||||
<task id="LOCAL-00001" summary="logging">
|
||||
<created>1543489096193</created>
|
||||
@ -132,22 +133,28 @@
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1544054202071</updated>
|
||||
</task>
|
||||
<option name="localTasksCounter" value="5" />
|
||||
<task id="LOCAL-00005" summary="logging">
|
||||
<created>1544054413970</created>
|
||||
<option name="number" value="00005" />
|
||||
<option name="presentableId" value="LOCAL-00005" />
|
||||
<option name="project" value="LOCAL" />
|
||||
<updated>1544054413970</updated>
|
||||
</task>
|
||||
<option name="localTasksCounter" value="6" />
|
||||
<servers />
|
||||
</component>
|
||||
<component name="TimeTrackingManager">
|
||||
<option name="totallyTimeSpent" value="6030000" />
|
||||
<option name="totallyTimeSpent" value="6914000" />
|
||||
</component>
|
||||
<component name="ToolWindowManager">
|
||||
<frame x="-5" y="37" width="1930" height="1048" extended-state="6" />
|
||||
<frame x="-5" y="37" width="3850" height="2128" extended-state="6" />
|
||||
<editor active="true" />
|
||||
<layout>
|
||||
<window_info content_ui="combo" id="Project" order="0" sideWeight="0.752" visible="true" weight="0.21162046" />
|
||||
<window_info content_ui="combo" id="Project" order="0" sideWeight="0.752" visible="true" weight="0.2125922" />
|
||||
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
|
||||
<window_info id="npm" order="2" sideWeight="0.23927958" side_tool="true" weight="0.30049706" />
|
||||
<window_info id="Favorites" order="3" side_tool="true" />
|
||||
<window_info id="Gulp" order="4" sideWeight="0.248" side_tool="true" visible="true" weight="0.18230277" />
|
||||
<window_info anchor="bottom" id="SonarLint" />
|
||||
<window_info anchor="bottom" id="Message" order="0" />
|
||||
<window_info anchor="bottom" id="Find" order="1" />
|
||||
<window_info anchor="bottom" id="Run" order="2" sideWeight="0.74946696" weight="0.3047831" />
|
||||
@ -156,12 +163,13 @@
|
||||
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
|
||||
<window_info anchor="bottom" id="TODO" order="6" />
|
||||
<window_info anchor="bottom" id="Docker" order="7" sideWeight="0.6741979" weight="0.3299544" />
|
||||
<window_info active="true" anchor="bottom" id="Version Control" order="8" sideWeight="0.4824094" visible="true" weight="0.36" />
|
||||
<window_info active="true" anchor="bottom" id="Version Control" order="8" sideWeight="0.4824094" visible="true" weight="0.360101" />
|
||||
<window_info anchor="bottom" id="Event Log" order="9" sideWeight="0.51759064" side_tool="true" weight="0.5272525" />
|
||||
<window_info anchor="bottom" id="Terminal" order="10" weight="0.3299544" />
|
||||
<window_info anchor="bottom" id="TypeScript" order="11" />
|
||||
<window_info anchor="bottom" id="Duplicates" order="12" weight="0.32978183" />
|
||||
<window_info anchor="bottom" id="Messages" order="13" sideWeight="0.4989339" weight="0.32925472" />
|
||||
<window_info anchor="bottom" id="SonarLint" order="14" />
|
||||
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
|
||||
<window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
|
||||
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
|
||||
@ -178,8 +186,8 @@
|
||||
<component name="editorHistoryManager">
|
||||
<entry file="file://$PROJECT_DIR$/server.js">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="234">
|
||||
<caret line="13" column="7" selection-start-line="13" selection-start-column="7" selection-end-line="13" selection-end-column="7" />
|
||||
<state relative-caret-position="527">
|
||||
<caret line="43" column="26" selection-start-line="43" selection-start-column="14" selection-end-line="43" selection-end-column="26" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
|
63
server.js
63
server.js
@ -3,19 +3,64 @@ const app = express();
|
||||
const port = 3434;
|
||||
|
||||
|
||||
app.get('/v2/broadway/cards', (req, res) => {
|
||||
app.get('/v2/broadway/cards', (req, res) => {
|
||||
|
||||
console.log('-+-+-+-+-+-+-+-');
|
||||
console.log('originalUrl', req.originalUrl);
|
||||
console.log('Headers', req.headers);
|
||||
console.log('query', req.query);
|
||||
console.log('\n\n\n');
|
||||
console.log('-+-+-+-+-+-+-+-');
|
||||
console.log('originalUrl', req.originalUrl);
|
||||
console.log('Headers', req.headers);
|
||||
console.log('query', req.query);
|
||||
console.log('\n\n\n');
|
||||
|
||||
res.set('Content-Type', 'text/xml');
|
||||
res.send("<BEGIN_OBJECT></BEGIN_OBJECT>")
|
||||
});
|
||||
res.set('Content-Type', 'text/xml');
|
||||
res.send("<BEGIN_OBJECT></BEGIN_OBJECT>")
|
||||
});
|
||||
|
||||
|
||||
app.get('/v1/test/getcrumb', (req, res) => {
|
||||
|
||||
console.log('-+-+-+-+-+-+-+-');
|
||||
console.log('originalUrl', req.originalUrl);
|
||||
console.log('Headers', req.headers);
|
||||
console.log('query', req.query);
|
||||
console.log('\n\n\n');
|
||||
|
||||
res.send("LvnvxRvdbc")
|
||||
});
|
||||
|
||||
app.get('/v2/get_device', (req, res) => {
|
||||
|
||||
console.log('-+-+-+-+-+-+-+-');
|
||||
console.log('originalUrl', req.originalUrl);
|
||||
console.log('Headers', req.headers);
|
||||
console.log('query', req.query);
|
||||
console.log('\n\n\n');
|
||||
|
||||
const obj = {};
|
||||
|
||||
obj.rid = req.headers.get('x-rid');
|
||||
obj.did = req.headers.get('x-ya-did');
|
||||
|
||||
obj.yaDid = obj.did;
|
||||
obj.crumb = 'LvnvxRvdbc';
|
||||
|
||||
console.log(JSON.stringify(obj));
|
||||
|
||||
res.send(JSON.stringify(obj));
|
||||
});
|
||||
|
||||
|
||||
/*
|
||||
originalUrl /v2/get_device?crumb=LvnvxRvdbc&deviceId=b5280075a297b2f3
|
||||
{ host: 'aviate.silvrtree.co.uk',
|
||||
14|server | connection: 'close',
|
||||
14|server | 'x-rid': '8b244c59-2e7c-4954-8fd7-78533a68cdc6',
|
||||
14|server | 'x-ya-did': 'b5280075a297b2f3',
|
||||
14|server | cookie: 'B=13rct8aaothl7',
|
||||
14|server | 'user-agent': 'Dalvik/2.1.0 (Linux; U; Android 6.0; Android SDK built for x86_64 Build/MASTER)',
|
||||
14|server | 'accept-encoding': 'gzip' }
|
||||
14|server | query { crumb: 'LvnvxRvdbc', deviceId: 'b5280075a297b2f3' }
|
||||
|
||||
*/
|
||||
|
||||
|
||||
app.get('*', (req, res) => {
|
||||
|
Loading…
Reference in New Issue
Block a user