mirror of
https://github.com/covidpass-org/covidpass.git
synced 2025-02-23 15:07:44 +01:00
Merge pull request #6 from billylo1/more-logging-for-generate-errors
More logging for sentry to track down errors
This commit is contained in:
commit
9602bdbaf6
@ -213,13 +213,19 @@ function Form(): JSX.Element {
|
||||
try {
|
||||
if (file) {
|
||||
|
||||
console.log('> generatePass');
|
||||
|
||||
console.log('> get payload');
|
||||
payloadBody = await getPayloadBodyFromFile(file, color);
|
||||
|
||||
console.log('> increment count');
|
||||
await incrementCount();
|
||||
|
||||
console.log('> generatePass');
|
||||
let pass = await PassData.generatePass(payloadBody);
|
||||
|
||||
console.log('> create blob');
|
||||
const passBlob = new Blob([pass], {type: "application/vnd.apple.pkpass"});
|
||||
|
||||
console.log('> save blob');
|
||||
saveAs(passBlob, 'covid.pkpass');
|
||||
setLoading(false);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user