From 5947e2d9a86d91ba3823a37eb0a2c6c38666b99a Mon Sep 17 00:00:00 2001 From: Alan Plum Date: Tue, 15 Dec 2015 18:15:42 +0100 Subject: [PATCH] fix console.warn in Foxx --- js/server/modules/@arangodb/foxx/console.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/server/modules/@arangodb/foxx/console.js b/js/server/modules/@arangodb/foxx/console.js index 94f392612a..64c3718714 100644 --- a/js/server/modules/@arangodb/foxx/console.js +++ b/js/server/modules/@arangodb/foxx/console.js @@ -45,6 +45,9 @@ function nativeLogger(level, levelNum, mount) { logLevel = 'info'; // require('console').trace also uses INFO level } if (NATIVE_LOG_LEVELS.indexOf(logLevel) !== -1) { + if (logLevel === 'warn') { + logLevel = 'warning'; // require('console').warn uses WARNING level + } return function (message) { arangoConsole._log(logLevel, `${mount} ${message}`); };