[Open 1641] Change warnings to info messages

This commit is contained in:
Luis Schubert 2017-07-06 15:55:29 -07:00
parent 0794c0edf7
commit 19b5e7c781
2 changed files with 18 additions and 4 deletions
platform
framework/src/register
telemetry/src

View File

@ -75,6 +75,21 @@ define(
].join(""));
}
//Log an info: defaults to "no service provide by"
function info(extension, category, message) {
var msg = message || "No service provided by";
$log.info([
msg,
" ",
category,
" ",
extension.key,
" from bundle ",
(extension.bundle || { path: "unknown bundle" }).path,
"; skipping."
].join(""));
}
// Echo arguments; used to represent groups of non-built-in
// extensions as a single dependency.
function echoMany() {
@ -161,13 +176,13 @@ define(
name = makeName("aggregator", service, index);
if (!service) {
return warn(aggregator, "aggregator");
return info(aggregator, "aggregator");
}
// Aggregators need other services to aggregate, otherwise they
// do nothing.
if (!latest[service]) {
return warn(
return info(
aggregator,
"aggregator",
"No services to aggregate for"

View File

@ -117,7 +117,7 @@ define(
} catch (e) {
// $injector should throw if telemetryService
// is unavailable or unsatisfiable.
$log.warn("Telemetry service unavailable");
$log.info("Telemetry service unavailable");
return (this.telemetryService = null);
}
};
@ -314,4 +314,3 @@ define(
return TelemetryCapability;
}
);