Skip to content

Commit

Permalink
chore: add debug log (missing class)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Jun 27, 2023
1 parent 26498c2 commit 662aa87
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/plugin/visitors/model-class.visitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { PropertyAssignment, factory } from 'typescript';
import { ApiHideProperty } from '../../decorators';
import { PluginOptions } from '../merge-options';
import { METADATA_FACTORY_NAME } from '../plugin-constants';
import { pluginDebugLogger } from '../plugin-debug-logger';
import {
createBooleanLiteral,
createLiteralFromAnyValue,
Expand Down Expand Up @@ -97,7 +98,11 @@ export class ModelClassVisitor extends AbstractFileVisitor {
if (isExported) {
ts.forEachChild(node, propertyNodeVisitorFactory(metadata));
} else {
// TODO: Log debug warning
if (options.debug) {
pluginDebugLogger.debug(
`Skipping class "${node.name.getText()}" because it's not exported.`
);
}
}
} else {
node = ts.visitEachChild(
Expand Down

0 comments on commit 662aa87

Please sign in to comment.