Skip to content

Commit 146d907

Browse files
Fix issue
1 parent 09fb511 commit 146d907

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

selenium/fakeportal/proxy.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
var http = require('http'),
22
httpProxy = require('http-proxy');
3-
const {log, error} = require('./utils.js')
3+
44
const XMLHttpRequest = require('xmlhttprequest').XMLHttpRequest
55

66
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)
3535
server.listen(port);
3636

3737

38+
function log(message) {
39+
console.log(new Date() + " " + message)
40+
}
41+
function error(message) {
42+
console.error(new Date() + " " + message)
43+
}
44+
3845
function default_if_blank(value, defaultValue) {
3946
if (typeof value === "undefined" || value === null || value == "") {
4047
return defaultValue;

0 commit comments

Comments
 (0)