ngageoint / geopackage-js

GeoPackage JavaScript Library
http://ngageoint.github.io/geopackage-js/
MIT License
312 stars 78 forks source link

Remove console.log of geoPackageConnection #171

Open emrivero opened 3 years ago

emrivero commented 3 years ago

Is there any possibility to parameterize the console.log option of these lines so that it does not appear?

https://github.com/ngageoint/geopackage-js/blob/bfabe794f1dd6dbeac9d23def0051d5a35d00d34/lib/db/geoPackageConnection.ts#L10,L14

if (typeof process !== 'undefined' && process.version && !process.env.FORCE_SQLJS) {
  console.log('Better SQLite');
} else {
  console.log('SQL.js');
}

If it is not developed, I could do it and do a PR.

Something like options.silent in constructor of GeoPackageConnection.

danielbarela commented 3 years ago

Pull requests are welcome.