List users on server start

This commit is contained in:
Mattias Erming 2014-09-30 13:20:36 -07:00
parent 82899a5fde
commit bf8939cf06
3 changed files with 13 additions and 12 deletions

View File

@ -738,7 +738,7 @@ button {
} }
#settings .opt { #settings .opt {
display: block; display: block;
padding: 10px 0 10px 1px; padding: 5px 0 10px 1px;
} }
#settings .opt input { #settings .opt input {
float: left; float: left;

View File

@ -48,6 +48,9 @@ ClientManager.prototype.loadUser = function(name) {
name, name,
json json
)); ));
console.log(
"User '" + name + "' loaded."
);
} }
}; };
@ -121,9 +124,6 @@ ClientManager.prototype.autoload = function(sockets) {
var added = _.difference(self.getUsers(), loaded); var added = _.difference(self.getUsers(), loaded);
_.each(added, function(name) { _.each(added, function(name) {
self.loadUser(name); self.loadUser(name);
console.log(
"User '" + name + "' loaded."
);
}); });
var removed = _.difference(loaded, self.getUsers()); var removed = _.difference(loaded, self.getUsers());

View File

@ -33,13 +33,14 @@ module.exports = {
} }
} }
try {
fs.appendFile( fs.appendFile(
path + "/" + chan + ".log", path + "/" + chan + ".log",
line + "\n" line + "\n",
); function(e) {
} catch(e) { if (e) {
return; console.log("Log#write():\n" + e)
} }
} }
);
}
}; };