Skip to content

Commit

Permalink
Use logger and throw error.
Browse files Browse the repository at this point in the history
  • Loading branch information
gannan08 committed Oct 8, 2024
1 parent 8c8240a commit 9bfd301
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/workflows/vc-api-workflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import {BaseWorkflowService} from './base.js';
import {createId} from '../../common/utils.js';
import {database} from '../database.js';
import {logger} from '../logger.js';
import {zcapClient} from '../../common/zcap.js';

export class VCApiWorkflowService extends BaseWorkflowService {
Expand Down Expand Up @@ -103,7 +104,8 @@ export class VCApiWorkflowService extends BaseWorkflowService {
rp, id: exchange.id, accessToken, allowExpired: true
});
} catch(e) {
console.error('Could not get exchange', e);
logger.error('Could not get exchange.', {error: e});
throw e;
}

next();
Expand Down

0 comments on commit 9bfd301

Please sign in to comment.