Skip to content

Commit

Permalink
add more logging for YAML parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
twitchyvr committed Nov 20, 2023
1 parent 84efee0 commit 60cfac1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/telemetry.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ class Telemetry {
if (sessionInfo) {
try {
const yamlString = sessionInfo.toString()
console.log('Raw YAML:', yamlString)
this.sessionInfo = yaml.load(yamlString) // Make sure to load from yamlString
console.log('Raw YAML:', yamlString) // Ensure this logs the full YAML string
this.sessionInfo = yaml.load(yamlString)
console.log('Parsed Session Info:', this.sessionInfo) // Log parsed data for verification
} catch (error) {
console.error('Error parsing YAML:', error)
this.sessionInfo = {}
Expand Down

0 comments on commit 60cfac1

Please sign in to comment.