Commit 236a4154 authored by Aron Fiechter's avatar Aron Fiechter
Browse files

Disable debug logs in production

parent f0c1a4d3
import { isLocalhost } from '../serviceWorker';
import config from "../config";
import config from '../config';
export default {
info: (message) => config.LOG_LEVEL === 'INFO' ? console.log(message) : null,
debug: (message) => isLocalhost && config.LOG_LEVEL === 'DEBUG' ? console.log(message) : null,
info: (message) => (config.LOG_LEVEL === 'INFO' ? console.log(message) : null),
debug: (message) =>
!config.ENV.IS_PRODUCTION && config.LOG_LEVEL === 'DEBUG' ? console.log(message) : null,
};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment