mirror of
https://github.com/nasa/openmct.git
synced 2024-12-28 08:58:52 +00:00
[Open 1641] Change warnings to info messages
This commit is contained in:
parent
0794c0edf7
commit
19b5e7c781
@ -75,6 +75,21 @@ define(
|
|||||||
].join(""));
|
].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
|
// Echo arguments; used to represent groups of non-built-in
|
||||||
// extensions as a single dependency.
|
// extensions as a single dependency.
|
||||||
function echoMany() {
|
function echoMany() {
|
||||||
@ -161,13 +176,13 @@ define(
|
|||||||
name = makeName("aggregator", service, index);
|
name = makeName("aggregator", service, index);
|
||||||
|
|
||||||
if (!service) {
|
if (!service) {
|
||||||
return warn(aggregator, "aggregator");
|
return info(aggregator, "aggregator");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Aggregators need other services to aggregate, otherwise they
|
// Aggregators need other services to aggregate, otherwise they
|
||||||
// do nothing.
|
// do nothing.
|
||||||
if (!latest[service]) {
|
if (!latest[service]) {
|
||||||
return warn(
|
return info(
|
||||||
aggregator,
|
aggregator,
|
||||||
"aggregator",
|
"aggregator",
|
||||||
"No services to aggregate for"
|
"No services to aggregate for"
|
||||||
|
@ -117,7 +117,7 @@ define(
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
// $injector should throw if telemetryService
|
// $injector should throw if telemetryService
|
||||||
// is unavailable or unsatisfiable.
|
// is unavailable or unsatisfiable.
|
||||||
$log.warn("Telemetry service unavailable");
|
$log.info("Telemetry service unavailable");
|
||||||
return (this.telemetryService = null);
|
return (this.telemetryService = null);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -314,4 +314,3 @@ define(
|
|||||||
return TelemetryCapability;
|
return TelemetryCapability;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user