opendevstack / ods-pipeline

Alternative ODS CI/CD pipeline based on Tekton / OpenShift Pipelines
Apache License 2.0
13 stars 5 forks source link

Add timestamp and tag to log messages in pipeline manager deployment #565

Closed michaelsauter closed 2 years ago

michaelsauter commented 2 years ago

Thought about adding a logging library instead, but it looks like the popular ones all have speed as their major concern and come with quite a few other dependencies. Since we do not care that much about speed here, and rather want a simple way to use the logger, I added the extra functionality to the existing logging.

Closes #554.

Logs now look like this:

2022-06-17T08:27:09Z | INFO  | Booting ...
2022-06-17T08:27:09Z | INFO  | Ready to accept requests!
2022-06-17T08:27:09Z | DEBUG | pruner: Prune settings: MinKeepHours=48 MaxKeepRuns=20
2022-06-17T08:27:50Z | DEBUG | watcher: Advancing pipeline run queue for queue 'foo-app' ...
2022-06-17T08:27:50Z | DEBUG | watcher: Found 0 pipeline runs related to repository foo-app.

Tasks: