@proteinjs/db 1.5.4 → 1.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/Record.ts CHANGED
@@ -73,7 +73,8 @@ export class RecordSerializer<T extends Record> {
73
73
  }
74
74
 
75
75
  if (omittedFields.length > 0) {
76
- this.logger.info(`Fields were omitted during serialization: ${omittedFields.join(', ')}`);
76
+ // could mean the developer is passing in an object they don't expect
77
+ this.logger.warn(`Fields were omitted during serialization: ${omittedFields.join(', ')}`);
77
78
  }
78
79
 
79
80
  return serialized;
@@ -94,7 +95,8 @@ export class RecordSerializer<T extends Record> {
94
95
  }
95
96
 
96
97
  if (omittedFields.length > 0) {
97
- this.logger.info(`Fields were omitted during deserialization: ${omittedFields.join(', ')}`);
98
+ // expected when passing a base table into the query api
99
+ this.logger.debug(`Fields were omitted during deserialization: ${omittedFields.join(', ')}`);
98
100
  }
99
101
 
100
102
  return deserialized;