Skip to content

Commit

Permalink
Merge pull request #322 from adhocteam/kw-enable-debug-log-level
Browse files Browse the repository at this point in the history
Enable debug log level to allow troubleshooting
  • Loading branch information
kryswisnaskas authored Jun 4, 2021
2 parents 2a41572 + e109837 commit fcd330a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion deployment_config/prod_vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ web_instances: 2
web_memory: 512M
worker_instances: 1
worker_memory: 512M
LOG_LEVEL: info
LOG_LEVEL: debug
AUTH_BASE: https://hses.ohs.acf.hhs.gov
# This env variable should go away soon in favor of TTA_SMART_HUB_URI
REDIRECT_URI_HOST: https://ttahub.ohs.acf.hhs.gov
Expand Down
4 changes: 2 additions & 2 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ app.get(oauth2CallbackPath, async (req, res) => {

const { url } = requestObj;
const { data } = await axios.get(url, requestObj);
logger.debug(`User details response data: ${JSON.stringify(data, null, 2)}`);
logger.info(`User details response data: ${JSON.stringify(data, null, 2)}`);
const {
name,
principal: {
Expand All @@ -84,7 +84,7 @@ app.get(oauth2CallbackPath, async (req, res) => {
req.session.userId = dbUser.id;
auditLogger.info(`User ${dbUser.id} logged in`);

logger.debug(`referrer path: ${req.session.referrerPath}`);
logger.info(`referrer path: ${req.session.referrerPath}`);
res.redirect(join(process.env.TTA_SMART_HUB_URI, req.session.referrerPath));
} catch (error) {
auditLogger.error(`Error logging in: ${error}`);
Expand Down

0 comments on commit fcd330a

Please sign in to comment.