fix lint
This commit is contained in:
parent
fe18aa770d
commit
2415210be6
2 changed files with 11 additions and 7 deletions
|
|
@ -1,5 +1,11 @@
|
|||
let log = (msg) => console.log(msg);
|
||||
|
||||
export function errorLogger(e, origin = 'cyclist') {
|
||||
//TODO: add some kind of debug flag that enables this while in dev mode
|
||||
// console.error(e);
|
||||
logger(`[${origin}] error: ${e.message}`);
|
||||
}
|
||||
|
||||
export const logger = (...args) => log(...args);
|
||||
|
||||
export const setLogger = (fn) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue