From 0402d6f842263f3a4494238bfee8efc23d2fb89c Mon Sep 17 00:00:00 2001 From: Cheng Liu Date: Wed, 21 Feb 2024 18:42:51 -0800 Subject: [PATCH 1/2] fix: log format --- apps/sparo-lib/src/services/GitSparseCheckoutService.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/sparo-lib/src/services/GitSparseCheckoutService.ts b/apps/sparo-lib/src/services/GitSparseCheckoutService.ts index d088363..2c532d1 100644 --- a/apps/sparo-lib/src/services/GitSparseCheckoutService.ts +++ b/apps/sparo-lib/src/services/GitSparseCheckoutService.ts @@ -153,7 +153,7 @@ ${availableProfiles.join(',')} { const stopwatch: Stopwatch = Stopwatch.start(); this.initializeRepository(); - terminal.writeLine('Initialize repo sparse checkout. (%s)', stopwatch.toString()); + terminal.writeLine(`Initialize repo sparse checkout. (${stopwatch.toString()})`); stopwatch.stop(); } @@ -209,7 +209,7 @@ ${availableProfiles.join(',')} if (toSelectors.size !== 0 || fromSelectors.size !== 0) { const stopwatch: Stopwatch = Stopwatch.start(); targetFolders = this._getTargetFoldersByRushList({ toSelectors, fromSelectors }); - terminal.writeLine('Run rush list command. (%s)', stopwatch.toString()); + terminal.writeLine(`Run rush list command. (${stopwatch.toString()})`); stopwatch.stop(); } else { terminal.writeDebugLine('Skip rush list regarding the absence of from selectors and to selectors'); @@ -239,7 +239,7 @@ ${availableProfiles.join(',')} }); } } - terminal.writeLine('Sparse checkout target folders. (%s)', stopwatch.toString()); + terminal.writeLine(`Sparse checkout target folders. (${stopwatch.toString()})`); stopwatch.stop(); } } From 0d081237fffe7ef2787d68ab711b00a06e3dd934 Mon Sep 17 00:00:00 2001 From: Cheng Liu Date: Wed, 21 Feb 2024 18:44:35 -0800 Subject: [PATCH 2/2] chore: rush change --- .../changes/sparo/fix-log-format_2024-02-22-02-44.json | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 common/changes/sparo/fix-log-format_2024-02-22-02-44.json diff --git a/common/changes/sparo/fix-log-format_2024-02-22-02-44.json b/common/changes/sparo/fix-log-format_2024-02-22-02-44.json new file mode 100644 index 0000000..3844b63 --- /dev/null +++ b/common/changes/sparo/fix-log-format_2024-02-22-02-44.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "sparo", + "comment": "Fix log format", + "type": "none" + } + ], + "packageName": "sparo" +} \ No newline at end of file