Merge branch 'hotfix/21.56.9' into master
[gitter.git] / public / js / utils / log.js
blob082292b5152ab9877b0d222089701bdfdd34aec7
1 'use strict';
3 var log = require('loglevel');
5 try {
6   window.gitterSetLogLevel = function(level) {
7     log.setLevel(level);
8   };
9 } catch (err) {
10   // noop, ignore `ReferenceError: window is not defined` when running in tests
13 module.exports = log;