Skip to content
Snippets Groups Projects
Commit c6576e3f authored by mcmlxxix's avatar mcmlxxix
Browse files

some bugfixes.

log service errors to file (for easier fixin')
parent ed19ee38
No related branches found
No related tags found
No related merge requests found
/* $Id$ */
var root = argv[0];
/* load server connection information from server.ini */
var server_file = new File(file_cfgname(root, "server.ini"));
server_file.open('r',true);
......@@ -225,7 +224,7 @@ function scanInactivity() {
turns:0,
moves:0
}
client.write(game_id,"games." + gameNumber + ".players." + player.name,player,2)
client.write(game_id,"games." + game.gameNumber + ".players." + player.name,player,2)
updateTurn(game);
}
}
......@@ -266,6 +265,16 @@ function main() {
}
}
try {
open();
main();
close();
\ No newline at end of file
close();
} catch(e) {
var ef = new File(root + "e.log");
ef.open('a',true);
ef.writeln(e.toSource());
ef.close();
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment