File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -21,15 +21,15 @@ let readerPromise: Promise<ReaderModel | null> | null = null;
2121async function loadDatabase ( ) : Promise < ReaderModel | null > {
2222 try {
2323 const dbBuffer = await readFile ( dbPath ) ;
24- console . log ( 'GeoLite2-City.mmdb loaded (dist)' ) ;
24+ console . log ( 'GeoLite2-City.mmdb loaded (dist)' , dbPath ) ;
2525 return Reader . openBuffer ( dbBuffer ) ;
2626 } catch {
2727 try {
2828 const dbBuffer = await readFile ( dbPathLocal ) ;
29- console . log ( 'GeoLite2-City.mmdb loaded (local)' ) ;
29+ console . log ( 'GeoLite2-City.mmdb loaded (local)' , dbPathLocal ) ;
3030 return Reader . openBuffer ( dbBuffer ) ;
3131 } catch {
32- console . error ( 'GeoLite2-City.mmdb not found' ) ;
32+ console . error ( 'GeoLite2-City.mmdb not found' , { dbPath , dbPathLocal } ) ;
3333 return null ;
3434 }
3535 }
You can’t perform that action at this time.
0 commit comments