change logger level (#10944)

Co-authored-by: caoqisen <qisen.cao@cocos.com>
This commit is contained in:
godIsAProgrammer
2022-05-24 10:26:52 +08:00
committed by GitHub
parent fd822e5b1b
commit 2671627a5d

View File

@@ -291,8 +291,8 @@ export function load (app: Application) {
continue;
}
const printUnableResolve = (iSegment: number) => {
_context.logger.error(`Failed to resolve ${segments[iSegment]} in ${match[0]} `
+ `referenced in ${getLocation()}`);
_context.logger.warn(`Failed to resolve ${segments[iSegment]} in ${match[0]} `
+ `referenced in ${!node ? '<unknown-location>' : node.getText()}`);
};
let targetReflection = resolveUnqualifiedReflection(segments[0]);
if (!targetReflection) {