Skip to content

Commit

Permalink
log checkins
Browse files Browse the repository at this point in the history
  • Loading branch information
junkafarian committed Feb 22, 2012
1 parent 2363ea4 commit 244dfee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions routes/models.js
Expand Up @@ -74,6 +74,7 @@ User.prototype.get_config = function() {
User.prototype.checkin = function(source, message) {
var checkin = new Checkin(new Date().getTime(), null, source, message);
this.checkins.push(checkin);
console.log('User %s checked in via %s', this.username, source);
};
User.prototype.alert = function() {
this.checkin(sources.SYSTEM, 'panic alert');
Expand Down

0 comments on commit 244dfee

Please sign in to comment.