mirror of
https://github.com/Cian-H/am-d-model.eu.git
synced 2026-08-14 15:23:23 +01:00
Elevated debug logs to info for prod environment
This commit is contained in:
@@ -7,9 +7,9 @@ export const navigation = {
|
||||
toAbout: () => goto("/about"),
|
||||
toContact: () => goto("/contact"),
|
||||
toRepository: () => {
|
||||
logger.debug("Entering '/lib/navigation.js'.toRepository");
|
||||
logger.info("Entering '/lib/navigation.js'.toRepository");
|
||||
goto("/repo");
|
||||
logger.debug("Exiting '/lib/navigation.js'.toRepository");
|
||||
logger.info("Exiting '/lib/navigation.js'.toRepository");
|
||||
},
|
||||
to404: () => {
|
||||
throw error(404, 'Page not found');
|
||||
|
||||
@@ -3,7 +3,7 @@ import winston from 'winston';
|
||||
const { createLogger, transports, format } = winston;
|
||||
|
||||
export const logger = createLogger({
|
||||
level: 'debug',
|
||||
level: 'info',
|
||||
format: format.combine(
|
||||
format.timestamp(),
|
||||
format.json()
|
||||
|
||||
Reference in New Issue
Block a user