Permalink
Browse files

ignore missing getgid and getuid

  • Loading branch information...
1 parent 59ff3fd commit ccdd2e6c5712aed64bb3cfb3f3a424e90dfd0bec @Shogun147 Shogun147 committed Jun 1, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/logme.js
View
@@ -58,10 +58,10 @@ Logme.prototype.tokens = {
return new Date().toUTCString();
},
gid: function() {
- return process.getgid();
+ return (process.getgid ? process.getgid() : 0);
},
uid: function() {
- return process.getuid();
+ return (process.getuid ? process.getuid() : 0);
},
pid: function() {
return process.pid;

0 comments on commit ccdd2e6

Please sign in to comment.