adjust the log line wording of task worker starting
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/backend-defaults': patch
|
||||
---
|
||||
|
||||
Adjusted the log line wording of task worker starting
|
||||
@@ -52,9 +52,9 @@ backend:
|
||||
type: incomingRequest
|
||||
level: warn
|
||||
|
||||
# Ignore logs starting with "Task worker starting", unless they're warnings or errors
|
||||
# Ignore logs starting with "Received registration for scheduler task", unless they're warnings or errors
|
||||
- matchers:
|
||||
message: ['/^Task worker starting/']
|
||||
message: ['/^Received registration for scheduler task/']
|
||||
level: warn
|
||||
```
|
||||
|
||||
|
||||
@@ -248,7 +248,7 @@ You can also check out the documentation on [how to test Backstage plugin module
|
||||
Run `yarn start` in the root folder of your Backstage project and look for logs like these:
|
||||
|
||||
```sh
|
||||
[backend]: YYYY-MM-DDTHH:MM:SS.000Z search info Task worker starting: search_index_faq_snippets, {"version":2,"cadence":"PT10M","initialDelayDuration":"PT3S","timeoutAfterDuration":"PT15M"} task=search_index_faq_snippets
|
||||
[backend]: YYYY-MM-DDTHH:MM:SS.000Z search info Received registration for scheduler task: search_index_faq_snippets, {"version":2,"cadence":"PT10M","initialDelayDuration":"PT3S","timeoutAfterDuration":"PT15M"} task=search_index_faq_snippets
|
||||
[backend]: YYYY-MM-DDTHH:MM:SS.000Z search info Collating documents for faq-snippets via FaqSnippetsCollatorFactory documentType=faq-snippets
|
||||
[backend]: YYYY-MM-DDTHH:MM:SS.000Z search info Fetching faq snippets from https://backstage.example.biz/faq-snippets
|
||||
[backend]: YYYY-MM-DDTHH:MM:SS.000Z search info Collating documents for faq-snippets succeeded documentType=faq-snippets
|
||||
|
||||
@@ -52,7 +52,9 @@ export class LocalTaskWorker {
|
||||
|
||||
start(settings: TaskSettingsV2, options: { signal: AbortSignal }) {
|
||||
this.logger.info(
|
||||
`Task worker starting: ${this.taskId}, ${JSON.stringify(settings)}`,
|
||||
`Received registration for scheduler task: ${
|
||||
this.taskId
|
||||
}, ${JSON.stringify(settings)}`,
|
||||
);
|
||||
|
||||
(async () => {
|
||||
|
||||
@@ -74,7 +74,9 @@ export class TaskWorker {
|
||||
}
|
||||
|
||||
this.logger.info(
|
||||
`Task worker starting: ${this.taskId}, ${JSON.stringify(settings)}`,
|
||||
`Received registration for scheduler task: ${
|
||||
this.taskId
|
||||
}, ${JSON.stringify(settings)}`,
|
||||
);
|
||||
|
||||
let workCheckFrequency = this.workCheckFrequency;
|
||||
|
||||
Reference in New Issue
Block a user