We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09fb511 commit 146d907Copy full SHA for 146d907
selenium/fakeportal/proxy.js
@@ -1,6 +1,6 @@
1
var http = require('http'),
2
httpProxy = require('http-proxy');
3
-const {log, error} = require('./utils.js')
+
4
const XMLHttpRequest = require('xmlhttprequest').XMLHttpRequest
5
6
const rabbitmq_url = process.env.RABBITMQ_URL || 'http://0.0.0.0:15672/';
@@ -35,6 +35,13 @@ log("fakeproxy listening on port " + port + ". RABBITMQ_URL=" + rabbitmq_url)
35
server.listen(port);
36
37
38
+function log(message) {
39
+ console.log(new Date() + " " + message)
40
+}
41
+function error(message) {
42
+ console.error(new Date() + " " + message)
43
44
45
function default_if_blank(value, defaultValue) {
46
if (typeof value === "undefined" || value === null || value == "") {
47
return defaultValue;
0 commit comments