Skip to content

Commit d99f209

Browse files
committed
Restore log messages
1 parent 9555bae commit d99f209

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

packages/ts/generator-typescript-plugin-backbone/src/EntityProcessor.ts

+2-5
Original file line numberDiff line numberDiff line change
@@ -110,17 +110,14 @@ export class EntityProcessor {
110110
const decomposed = decomposeSchema(schema);
111111

112112
if (decomposed.length > 2) {
113-
logger.debug(
114-
schema,
115-
`Schema for '${this.#fullyQualifiedName}' class component has more than 2 decomposed schemas, ignoring.`,
116-
);
113+
logger.error(schema, `Schema for '${this.#fullyQualifiedName}' class component is broken.`);
117114
return undefined;
118115
}
119116

120117
const [parent, child] = decomposed;
121118

122119
if (!isReferenceSchema(parent)) {
123-
logger.debug(parent, 'Parent schema is not a reference, ignoring.');
120+
logger.error(parent, 'Only reference schema allowed for parent class');
124121
return undefined;
125122
}
126123

0 commit comments

Comments
 (0)