You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewError(`Table '${res.table}' (In resource '${res.resourceId}') has no fields or does not exist`);
406
406
}
407
407
if(fieldTypes===null){
408
-
console.error(`⛔ DataSource ${res.dataSource} was not able to perform field discovery. It will not work properly`);
408
+
afLogger.error(`⛔ DataSource ${res.dataSource} was not able to perform field discovery. It will not work properly`);
409
409
if(process.env.NODE_ENV==='production'){
410
410
process.exit(1);
411
411
}
@@ -458,7 +458,7 @@ class AdminForth implements IAdminForth {
458
458
consttables=awaitconnector.getAllTables();
459
459
results[dataSourceId]=tables;
460
460
}catch(err){
461
-
console.error(`Error getting tables for dataSource ${dataSourceId}:`,err);
461
+
afLogger.error(`Error getting tables for dataSource ${dataSourceId}:${err}`);
462
462
results[dataSourceId]=[];
463
463
}
464
464
}else{
@@ -489,7 +489,7 @@ class AdminForth implements IAdminForth {
489
489
isUUID: isProbablyUUIDColumn(column),
490
490
}));
491
491
}catch(err){
492
-
console.error(`Error getting columns for table ${tableName} in dataSource ${dataSourceId}:`,err);
492
+
afLogger.error(`Error getting columns for table ${tableName} in dataSource ${dataSourceId}:${err}`);
493
493
results[dataSourceId]=[];
494
494
}
495
495
}else{
@@ -631,7 +631,7 @@ class AdminForth implements IAdminForth {
631
631
}
632
632
633
633
if(record){
634
-
console.warn(`updateResourceRecord function received 'record' param which is deprecated and will be removed in future version, please use 'updates' instead.`);
634
+
afLogger.warn(`updateResourceRecord function received 'record' param which is deprecated and will be removed in future version, please use 'updates' instead.`);
0 commit comments