Commit ea095725 by Sixong.Zhu

update

parent 0456b118
Showing with 8 additions and 5 deletions
...@@ -46,7 +46,7 @@ class WebMonitor { ...@@ -46,7 +46,7 @@ class WebMonitor {
} }
private enable() { private enable() {
return this.envir === ImEnvironment.Dev; return this.envir !== ImEnvironment.Dev;
} }
private envirString() { private envirString() {
...@@ -113,16 +113,19 @@ class WebMonitor { ...@@ -113,16 +113,19 @@ class WebMonitor {
msg.push(`CurrentOrg: ${header.CurrentOrg}`); msg.push(`CurrentOrg: ${header.CurrentOrg}`);
msg.push(`Scenes: ${header.Scenes}`); msg.push(`Scenes: ${header.Scenes}`);
} }
options &&
options.userAgent &&
msg.push(`UserAgent: ${this.getUa()}`);
r.config && r.config.data && msg.push(`Payload: ${JSON.stringify(r.config.data)}`);
msg.push( msg.push(
`Exception: ${((r.data.error as string) || "").substring( `Exception: ${((r.data.error as string) || "").substring(
0, 0,
500 500
)}` )}`
); );
options &&
options.userAgent &&
msg.push(`UserAgent: ${window.navigator.userAgent}`);
r.config && r.config.data && msg.push(`Payload: ${JSON.stringify(r.config.data)}`);
r && r.config && this.error(msg.join("\n")); r && r.config && this.error(msg.join("\n"));
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment