Skip to content

Commit

Permalink
Add debug messages [notarize]
Browse files Browse the repository at this point in the history
  • Loading branch information
tkleinke committed Jun 10, 2024
1 parent 83c0d18 commit 755b9e9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion desktop/electron/geopackage.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ electron.ipcMain.handle('readGeopackage', async (_, path) => {

async function readGeopackage(filePath) {

setCanvasKitWasmLocateFile(fileName => global.toolsPath + '/' + fileName);
console.log('Reading geopackage file:', filePath);

setCanvasKitWasmLocateFile(fileName => {
console.log('Path to canvas kit wasm file:', global.toolsPath + '/' + fileName);
return global.toolsPath + '/' + fileName
});

const geoPackage = await GeoPackageAPI.open(filePath);
const featureTablesNames = geoPackage.getFeatureTables();
Expand Down
2 changes: 2 additions & 0 deletions desktop/src/app/components/import/import.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,8 @@ export class ImportComponent implements OnInit {

private async testReadingGeopackage() {

console.log('Test importing geopackage file from path:', this.importState.filePath);

const returnValue = await ipcRenderer.invoke('readGeopackage', this.importState.filePath);

if (returnValue.error) {
Expand Down

0 comments on commit 755b9e9

Please sign in to comment.