Skip to content

Commit 0fda5ed

Browse files
Help debug thomas issue
1 parent 6d13d2c commit 0fda5ed

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/common/helper.js

+1
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,7 @@ function * postToBusApi (payload) {
714714
function cleanseReviews (reviews, authUser) {
715715
// Not a machine user
716716
if (!authUser.scopes) {
717+
logger.debug('Not a machine user. Filtering reviews...')
717718
const admin = _.filter(authUser.roles, role => role.toLowerCase() === 'Administrator'.toLowerCase())
718719
const copilot = _.filter(authUser.roles, role => role.toLowerCase() === 'Copilot'.toLowerCase())
719720

src/services/SubmissionService.js

+1
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ function * listSubmissions (authUser, query) {
189189
}
190190

191191
const data = yield helper.fetchFromES(query, helper.camelize(table))
192+
logger.debug(`Data returned from ES: ${JSON.stringify(data, null, 4)}`)
192193
logger.info(`listSubmissions: returning ${data.length} submissions for query: ${JSON.stringify(query)}`)
193194

194195
data.rows = _.map(data.rows, (submission) => {

0 commit comments

Comments
 (0)