Skip to content

Commit

Permalink
fix: Log out snapshot options in debug logs (#480)
Browse files Browse the repository at this point in the history
Super helpful for debugging
  • Loading branch information
Robdel12 authored Mar 6, 2020
1 parent 37bb0a9 commit c524926
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/services/agent-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ export class AgentService {
minHeight: request.body.minHeight || this.snapshotConfig['min-height'],
}

snapshotLogger.debug(`-> widths: ${snapshotOptions.widths}`)
snapshotLogger.debug(`-> minHeight: ${snapshotOptions.minHeight}`)
snapshotLogger.debug(`-> enableJavaScript: ${snapshotOptions.enableJavaScript}`)
snapshotLogger.debug(`-> requestHeaders: ${snapshotOptions.requestHeaders}`)
snapshotLogger.debug(`-> percyCSS: ${snapshotOptions.percyCSS}`)

let domSnapshot = request.body.domSnapshot

if (domSnapshot.length > Constants.MAX_FILE_SIZE_BYTES) {
Expand Down

0 comments on commit c524926

Please sign in to comment.