Skip to content

Commit 28fdf5c

Browse files
Merge pull request #15 from bridgevar/log-update-bug-fix
Fix for log bug!
2 parents 1469a8d + b5ea428 commit 28fdf5c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

test.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,23 @@ var createBridges = function(start, end, user) {
1818
if (name === '☁ ' + firstName) {
1919
val = value.toString();
2020
secondcloud.set('☁ ' + secondName, value);
21+
var today = new Date();
22+
var UTCstring = today.toUTCString();
23+
console.log("At " + UTCstring + " " + firstProjectId + " sent " + secondProjectId + " the value " + val + "\n");
2124
}
2225
});
2326
secondcloud.on('set', function(name, value) {
2427
if (name === '☁ ' + secondName) {
2528
val = value.toString();
2629
firstcloud.set('☁ ' + secondName, value);
30+
var today = new Date();
31+
var UTCstring = today.toUTCString();
32+
console.log("At " + UTCstring + " " + firstProjectId + " sent " + secondProjectId + " the value " + val + "\n");
2733
}
2834
});
2935
});
3036
});
31-
var today = new Date();
32-
var UTCstring = today.toUTCString();
33-
console.log("At " + UTCstring + " " + firstProjectId + " sent " + secondProjectId + " the value " + val + "\n");
37+
3438
}
3539
}
3640
Scratch.UserSession.create(username, password, function(err, user) {

0 commit comments

Comments
 (0)