mirror of
https://github.com/nasa/openmct.git
synced 2024-12-27 16:38:51 +00:00
[Open 1641] Change warnings to info messages
This commit is contained in:
parent
0794c0edf7
commit
19b5e7c781
platform
@ -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"
|
||||
|
@ -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;
|
||||
}
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user