From 427b729b866d40db586b7378f9100cb8136159a1 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Thu, 15 Jan 2015 16:48:16 -0700 Subject: [PATCH] cleanup logging --- desirae.js | 10 +++++----- lib/utils.js | 1 - 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/desirae.js b/desirae.js index c64dd60..18d6b66 100644 --- a/desirae.js +++ b/desirae.js @@ -223,10 +223,6 @@ } } - console.log(''); - console.log(''); - console.info('getting config, data, caches...'); - function clone(obj) { return JSON.parse(JSON.stringify(obj)); } @@ -238,7 +234,7 @@ - Desi.toLocaleDate = function (d) { + Desi.toDesiDate = Desi.toLocaleDate = function (d) { return d.getFullYear() + '-' + pad(d.getMonth() + 1) + '-' + pad(d.getDate()) + ' ' + (d.getHours() % 12) + ':' + pad(d.getMinutes()) + ' ' + (d.getHours() - 12 >= 0 ? 'pm' : 'am') @@ -247,6 +243,10 @@ // read config and such Desi.init = function (desi, env) { + console.log(''); + console.log(''); + console.info('getting config, data, caches...'); + if (!exports.window) { // TODO pull state out of this later Desi.realFsapi.create(Desi, env); diff --git a/lib/utils.js b/lib/utils.js index 0f0c6e8..6371efc 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -5,7 +5,6 @@ ; function escapeRegExp(str) { - console.log('hello', str); return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&"); }