From 9707092cc9b9f92fdd9f321c2b799ce9a1524cb5 Mon Sep 17 00:00:00 2001 From: Evan Morikawa Date: Wed, 23 Nov 2016 10:52:50 -0800 Subject: [PATCH] Add logger fallback --- packages/local-sync/src/local-api/app.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/local-sync/src/local-api/app.js b/packages/local-sync/src/local-api/app.js index 9558ec6a6..523e62e2b 100644 --- a/packages/local-sync/src/local-api/app.js +++ b/packages/local-sync/src/local-api/app.js @@ -10,6 +10,8 @@ const path = require('path'); const LocalDatabaseConnector = require('../shared/local-database-connector') const SchedulerUtils = require('../shared/scheduler-utils') +if (!global.Logger) { global.Logger = console } + const server = new Hapi.Server({ connections: { router: {