Compare commits
1 Commits
7ce6467385
...
5de398c435
| Author | SHA1 | Date | |
|---|---|---|---|
| 5de398c435 |
@ -86,17 +86,9 @@ export class ReadTrailService {
|
|||||||
|
|
||||||
/** States the switch position once at startup (issue #225): a trail
|
/** States the switch position once at startup (issue #225): a trail
|
||||||
* without events must be distinguishable from a disabled trail — the log
|
* without events must be distinguishable from a disabled trail — the log
|
||||||
* line makes the gap explainable either way. Must never fail the boot:
|
* line makes the gap explainable either way. */
|
||||||
* healthz-only environments come up without a reachable database. */
|
|
||||||
async announceState(): Promise<void> {
|
async announceState(): Promise<void> {
|
||||||
let enabled: boolean;
|
if (await this.settings.get('readTrail.enabled')) {
|
||||||
try {
|
|
||||||
enabled = await this.settings.get('readTrail.enabled');
|
|
||||||
} catch {
|
|
||||||
this.logger.warn('read_trail: switch position unknown at startup (settings unavailable)');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (enabled) {
|
|
||||||
this.logger.info('read_trail: enabled — reads of classified pages are recorded');
|
this.logger.info('read_trail: enabled — reads of classified pages are recorded');
|
||||||
} else {
|
} else {
|
||||||
this.logger.warn(
|
this.logger.warn(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user