Skip to content

Commit

Permalink
Add debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-yeager committed Jan 17, 2025
1 parent 907278f commit 71ea488
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 13 deletions.
5 changes: 5 additions & 0 deletions lib/projects/upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { EXIT_CODES } from '../enums/exitCodes';
import { ProjectConfig } from '../../types/Projects';
import { isTranslationError, translate } from '@hubspot/project-parsing-lib';
import { logError } from '../errorHandlers';
import util from 'node:util';

const i18nKey = 'lib.projectUpload';

Expand Down Expand Up @@ -140,6 +141,10 @@ export async function handleProjectUpload<T = ProjectUploadDefaultResult>(
platformVersion: projectConfig.platformVersion,
accountId,
});

logger.debug(
util.inspect(intermediateRepresentation, false, null, true)
);
} catch (e) {
if (isTranslationError(e)) {
logger.error(e.toString());
Expand Down
26 changes: 13 additions & 13 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1446,10 +1446,10 @@
semver "^6.3.0"
unixify "^1.0.0"

"@hubspot/[email protected].1":
version "3.1.1"
resolved "https://registry.yarnpkg.com/@hubspot/local-dev-lib/-/local-dev-lib-3.1.1.tgz#b67646d7a7b399cebc5d74f62c389c13554e950c"
integrity sha512-/SIKBuC3ORkKMXityS6tCz2sNU7OY96slJtLM0CxRlKDCiwEGb08Lf0Ruf1PMBJnAu8iHbw/6SprefFEHEQOpw==
"@hubspot/[email protected].0":
version "3.1.0"
resolved "https://registry.yarnpkg.com/@hubspot/local-dev-lib/-/local-dev-lib-3.1.0.tgz#76b5d524aa694aad2bfc6e199ee1dac314f15774"
integrity sha512-iop3PgZ0ZWejCH6PmSeYnnGwV8vGIuA4F+w7SxukdX3QfhivlczClATWPaZanv1CYJHdflqoItq1kdF8ASJJmA==
dependencies:
address "^2.0.1"
axios "^1.3.5"
Expand All @@ -1470,10 +1470,10 @@
semver "^6.3.0"
unixify "^1.0.0"

"@hubspot/local-dev-lib@^3.1.0":
version "3.1.2"
resolved "https://registry.yarnpkg.com/@hubspot/local-dev-lib/-/local-dev-lib-3.1.2.tgz#9af9f8ca5cf9aba912cb9c5f9acf51e760604465"
integrity sha512-vn9pyKs/2NW86GWhTlp9VyDcpKUUUEWQgHwQpq57Luz9IWwCFAmFaTzSggmttTnqJRAmqwMIN8DHUKeMEJqquA==
"@hubspot/[email protected].1":
version "3.1.1"
resolved "https://registry.yarnpkg.com/@hubspot/local-dev-lib/-/local-dev-lib-3.1.1.tgz#b67646d7a7b399cebc5d74f62c389c13554e950c"
integrity sha512-/SIKBuC3ORkKMXityS6tCz2sNU7OY96slJtLM0CxRlKDCiwEGb08Lf0Ruf1PMBJnAu8iHbw/6SprefFEHEQOpw==
dependencies:
address "^2.0.1"
axios "^1.3.5"
Expand All @@ -1494,12 +1494,12 @@
semver "^6.3.0"
unixify "^1.0.0"

"@hubspot/[email protected].1":
version "0.0.1"
resolved "https://registry.yarnpkg.com/@hubspot/project-parsing-lib/-/project-parsing-lib-0.0.1.tgz#fd1f823abbe410d97446bd5fc804b2e9bf40402e"
integrity sha512-7Qqc6YplKTYG2skswVtNc02iCIuPd816vZT3I4HTYzJRQ9EqYTPZ7QLrL9VSTkLNkUyHw0AJE1qeQJqye1eAfQ==
"@hubspot/project-parsing-lib@^0.0.2-experimental.0":
version "0.0.2-experimental.0"
resolved "https://registry.yarnpkg.com/@hubspot/project-parsing-lib/-/project-parsing-lib-0.0.2-experimental.0.tgz#df4b6c20b9236fbdb5a0c6cc8e2a66f480f08002"
integrity sha512-6Nhnl+0ZBBVyXfZc/UI2RndwyzaBg5bWazA/Gx0i5k6vPOFKRHWDl8iovo8TTkogPtXa7tkWwTUoaoIeHK6pew==
dependencies:
"@hubspot/local-dev-lib" "^3.1.0"
"@hubspot/local-dev-lib" "3.1.0"
ajv "^8.17.1"
ajv-draft-04 "^1.0.0"

Expand Down

0 comments on commit 71ea488

Please sign in to comment.