mirror of
https://github.com/nasa/openmct.git
synced 2025-06-14 05:08:15 +00:00
[Logging] Wire in log levels
Wire in log levels to allow specifying as a query string parameter; defaults to logging only warnings and above, for WTD-793.
This commit is contained in:
@ -43,7 +43,6 @@ define(
|
||||
log[m] = NOOP;
|
||||
}
|
||||
});
|
||||
return log;
|
||||
}
|
||||
|
||||
// Default to 'warn' level if unspecified
|
||||
@ -67,7 +66,10 @@ define(
|
||||
configure: function (app, $log) {
|
||||
decorate($log);
|
||||
app.config(function ($provide) {
|
||||
$provide.decorator('$log', decorate);
|
||||
$provide.decorator('$log', function ($delegate) {
|
||||
decorate($delegate);
|
||||
return $delegate;
|
||||
});
|
||||
});
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user