Skip to content
Snippets Groups Projects
Commit babc8fa1 authored by Mihail Gorceag's avatar Mihail Gorceag
Browse files

fix: add logging for debugging purposes

parent 0727f4ad
No related branches found
No related tags found
No related merge requests found
......@@ -169,21 +169,6 @@ module.exports = {
port,
} = cfg['pubsweet-client']
// eslint-disable-next-line
console.log('-----------------------------')
// eslint-disable-next-line
console.log('protocolToUse')
// eslint-disable-next-line
console.log(protocolToUse)
// eslint-disable-next-line
console.log('hostToUse')
// eslint-disable-next-line
console.log(hostToUse)
// eslint-disable-next-line
console.log('portToUse')
// eslint-disable-next-line
console.log(portToUse)
const protocolToUse = publicProtocol || protocol
let hostToUse = publicHost || host || 'localhost'
if (hostToUse === '0.0.0.0') hostToUse = 'localhost'
......
......@@ -9,6 +9,13 @@ const CALLBACK_URL = '/auth/orcid/callback'
module.exports = app => {
// eslint-disable-next-line global-require
const { User } = require('@pubsweet/models')
// eslint-disable-next-line
console.log('---------------------------------')
// eslint-disable-next-line
console.log('config get pubsweet client baseUrl')
// eslint-disable-next-line
console.log(config.get('pubsweet-client.baseUrl'))
// set up OAuth client
passport.use(
new OrcidStrategy(
......
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