From bf994a34b37baf50bec82f624f4479269d67aa42 Mon Sep 17 00:00:00 2001 From: Trent Mick Date: Mon, 7 Sep 2015 00:29:17 -0700 Subject: [PATCH] fix 'make check'; add some recent authors --- AUTHORS | 3 +++ lib/bunyan.js | 32 ++++++++++++++++---------------- 2 files changed, 19 insertions(+), 16 deletions(-) diff --git a/AUTHORS b/AUTHORS index bc8fc52..697ae75 100644 --- a/AUTHORS +++ b/AUTHORS @@ -20,3 +20,6 @@ Daniel Juhl (https://github.com/danieljuhl) Chris Barber (https://github.com/cb1kenobi) Manuel Schneider (https://github.com/manuelschneider) Martin Gausby (https://github.com/gausby) +Stéphan Kochen (https://github.com/stephank) +Shakeel Mohamed (https://github.com/shakeelmohamed) +Denis Izmaylov (https://github.com/DenisIzmaylov) diff --git a/lib/bunyan.js b/lib/bunyan.js index 8d28ae0..c7eafe9 100644 --- a/lib/bunyan.js +++ b/lib/bunyan.js @@ -26,23 +26,23 @@ var xxx = function xxx(s) { // internal dev/debug logging var xxx = function xxx() {}; // comment out to turn on debug logging -if (typeof window === 'undefined') { - var os = require('os'); - var fs = require('fs'); - try { - /* Use `+ ''` to hide this import from browserify. */ - var dtrace = require('dtrace-provider' + ''); - } catch (e) { - dtrace = null; - } -} else { - var os = { - hostname: function () { - return window.location.host; +if (typeof (window) === 'undefined') { + var os = require('os'); + var fs = require('fs'); + try { + /* Use `+ ''` to hide this import from browserify. */ + var dtrace = require('dtrace-provider' + ''); + } catch (e) { + dtrace = null; } - }; - var fs = {}; - var dtrace = null; +} else { + var os = { + hostname: function () { + return window.location.host; + } + }; + var fs = {}; + var dtrace = null; } var util = require('util'); var assert = require('assert');