From 662aa872e9b851d52314d0c22d8d7b978d61b894 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20My=C5=9Bliwiec?= Date: Tue, 27 Jun 2023 10:56:13 +0200 Subject: [PATCH] chore: add debug log (missing class) --- lib/plugin/visitors/model-class.visitor.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/plugin/visitors/model-class.visitor.ts b/lib/plugin/visitors/model-class.visitor.ts index d222b3c81..a4aa46b3a 100644 --- a/lib/plugin/visitors/model-class.visitor.ts +++ b/lib/plugin/visitors/model-class.visitor.ts @@ -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, @@ -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(