working in dev
This commit is contained in:
parent
48a6a12648
commit
3eb40ee7d3
2 changed files with 7 additions and 4 deletions
|
|
@ -1,8 +1,10 @@
|
|||
let log = (msg) => console.log(msg);
|
||||
|
||||
export function errorLogger(e, origin = 'cyclist') {
|
||||
export function errorLogger(e, origin = 'superdough') {
|
||||
//TODO: add some kind of debug flag that enables this while in dev mode
|
||||
// console.error(e);
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
console.error(e);
|
||||
}
|
||||
logger(`[${origin}] error: ${e.message}`);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue