Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 7 additions & 73 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ info('Starting up...', 'Preflight');
(await promisify(exec)('git rev-parse HEAD').catch(() => ({ stdout: undefined }))).stdout?.toString().trim() ??
process.env.npm_package_version ??
'unknown'
info(`Initialzing Sentry, using revision ${revision}`, 'Preflight')
info(`Initializing Sentry, using revision ${revision}`, 'Preflight')
Sentry.init({
dsn: process.env.SENTRY_DSN,
integrations: function (integrations) {
Expand Down
6 changes: 3 additions & 3 deletions src/utils/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function debug (message: any, component: string = 'generic'): void {
message,
level: 'debug'
})
if (process.env.NODE_ENV === 'debug') log(chalk`{blue dbug}`, chalk`{blue ${component}}`, message)
if (process.env.NODE_ENV === 'debug') log(chalk`{blue debug}`, chalk`{blue ${component}}`, message)
}

/**
Expand Down Expand Up @@ -62,7 +62,7 @@ export function error (_err: any, component: string = 'generic', captureContext?
...captureContext
})
}
log(chalk`{red erro}`, chalk`{red ${component}}`, _err instanceof Error ? _err.stack : _err)
log(chalk`{red error}`, chalk`{red ${component}}`, _err instanceof Error ? _err.stack : _err)
return uuid
}

Expand All @@ -87,7 +87,7 @@ export function fatal (_err: any, component: string = 'generic', captureContext?
...captureContext
})
}
log(chalk`{bgRed fatl}`, chalk`{bgRed ${component}}`, _err instanceof Error ? _err.stack : _err)
log(chalk`{bgRed fail}`, chalk`{bgRed ${component}}`, _err instanceof Error ? _err.stack : _err)
Sentry.close(10000).then(() => process.exit(1)).catch(() => process.exit(1))
}

Expand Down