Skip to content

Commit

Permalink
Cleanup some noisier logs
Browse files Browse the repository at this point in the history
  • Loading branch information
kpollich committed Dec 12, 2023
1 parent fe0ad5a commit c2c8e4f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion x-pack/plugins/fleet/server/services/epm/agent/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export function compileTemplate(variables: PackagePolicyConfigRecord, templateSt
const { vars, yamlValues } = buildTemplateVariables(logger, variables);
let compiledTemplate: string;
try {
logger.debug(`Compiling agent template: ${templateStr}`);
const template = handlebars.compile(templateStr, { noEscape: true });
compiledTemplate = template(vars);
} catch (err) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ export async function _installPackage({
await packagePolicyService.upgrade(savedObjectsClient, esClient, policyIdsToUpgrade.items);
});
}
logger.debug(`Package install - Installation complete}`);
logger.debug(`Package install - Installation complete`);
return [...installedKibanaAssetsRefs, ...esReferences];
} catch (err) {
if (SavedObjectsErrorHelpers.isConflictError(err)) {
Expand Down
4 changes: 1 addition & 3 deletions x-pack/plugins/fleet/server/services/epm/packages/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -516,9 +516,7 @@ async function installPackageCommon(options: {
} = options;
let { telemetryEvent } = options;
const logger = appContextService.getLogger();
logger.info(
`Install - Starting installation of ${pkgName}@${pkgVersion} from ${installSource}, paths: ${paths}`
);
logger.info(`Install - Starting installation of ${pkgName}@${pkgVersion} from ${installSource} `);

// Workaround apm issue with async spans: https://github.com/elastic/apm-agent-nodejs/issues/2611
await Promise.resolve();
Expand Down

0 comments on commit c2c8e4f

Please sign in to comment.