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