Skip to content

Commit

Permalink
move logging back into debug
Browse files Browse the repository at this point in the history
  • Loading branch information
gilzow committed Dec 10, 2024
1 parent 435fc11 commit bbe0016
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/actions/redirection-verification/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const verify = async () => {
})

const validateRedirects = RedirectKeys.map(async (path, index, array) => {
//console.log(`I'm going to test ${path} to see if it goes to ${anchors[path].to}`)
core.debug(`I'm going to test ${path} to see if it goes to ${anchors[path].to}`)

try {
const response = await axios.head(path);
Expand All @@ -96,15 +96,13 @@ const verify = async () => {
} catch (reqerr) {
// core.debug(`issue encountered with path ${path}!!! Returned status is ${reqerr.status}. More info: `)
core.info(`issue encountered with path ${path}!!! Returned status is ${reqerr.status}. More info: `)
console.log(reqerr)
core.debug(JSON.stringify(reqerr))
if(axios.isAxiosError(reqerr)) {
// core.debug(reqerr.toJSON())
core.info('Axios error.')
core.info(reqerr.toJSON())
core.debug('Axios error.')
} else {
console.log(reqerr)
core.info('Non-Axios error? ')
core.info(JSON.stringify(reqerr))
core.debug('Non-Axios error? ')
}

let row = [{data: linkify(path, axios.defaults.baseURL)},{data: linkify( anchors[path].to, axios.defaults.baseURL) }]
Expand Down

0 comments on commit bbe0016

Please sign in to comment.