Prettier logs

This commit is contained in:
Matt 2014-03-26 23:16:52 -06:00
parent 314dacf98a
commit 1fc9684677
4 changed files with 10 additions and 2 deletions

View File

@ -20,7 +20,7 @@
"enabled": true,
"siteTitle": "Cryppit",
"port": 80,
"statUpdateInterval": 5,
"statUpdateInterval": 1.5,
"hashrateWindow": 600
},
"proxy": {

View File

@ -2,6 +2,7 @@ var fs = require('fs');
var os = require('os');
var cluster = require('cluster');
require('./libs/algoProperties.js');
var async = require('async');
var posix = require('posix');

4
libs/algoProperties.js Normal file
View File

@ -0,0 +1,4 @@
global.algos = {
};
//lets put all algo related properties in here as a global object. also put this in stratum module then borrow it for the portal.

View File

@ -4,6 +4,8 @@ var colors = require('colors');
var severityToColor = function(severity, text) {
switch(severity) {
case 'special':
return text.cyan.underline;
case 'debug':
return text.green;
case 'warning':
@ -19,7 +21,8 @@ var severityToColor = function(severity, text) {
var severityValues = {
'debug': 1,
'warning': 2,
'error': 3
'error': 3,
'special': 4
};