Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: enable log timestamps by default (#32448)
### Reason for this change timestamps were no longer being printed for debug and trace level logging messages, because as part of the logging changes, I incidentally removed the timestamps from the `debug()` and `trace()` functions. ### Description of changes Re-added timestamps for whenever those 2 methods are called i.e. ``` debug: "message" is now "[09:58:24] message" info: "message" is still "message" ``` which was the previous functionality ### Description of how you validated changes Modified relevant unit tests and also did manual testing by verifying outputs of cdk commands on different cdk versions ``` # running cdk synth from local build of bobertzh/logging-fix [15:08:06] CDK toolkit version: 0.0.0 (build 68b77e7) [15:08:06] Command line arguments: { ... Resources: CDKMetadata: ... ``` ``` # running cdk synth from live CDK toolkit version: 2.173.0 (build b5c2189) Command line arguments: { ... Resources: CDKMetadata: ... ``` ``` # running cdk synth from be000a2 (parent commit) [15:20:33] CDK toolkit version: 0.0.0 (build be000a2) [15:20:33] Command line arguments: { ... Resources: CDKMetadata: ... ``` ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
- Loading branch information