Permalink
Browse files

V037

  • Loading branch information...
1 parent f3c518a commit 4317a4efaf2144aae4eb307dae37f873b0f6010b @mrohad committed Aug 29, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/log.js
View
@@ -1,7 +1,7 @@
var sys = require('sys');
function log(level, sector, args) {
- if (levels[level] >= sectors[sector]) {
+ if (sectors[sector] == undefined || levels[level] >= sectors[sector] ) {
sys.print([(new Date()).format("dd/mm/yy HH:MM:ss"),"[",level,"] ",sector," : "].join(""));
// Convert arguments object to an array so we can use
// Array's join method on it

0 comments on commit 4317a4e

Please sign in to comment.