Improve logging for preset #92

Merged
fyrchik merged 1 commits from abereziny/xk6-frostfs:feature-add-more-debug-info-to-presets into master 2023-08-16 08:25:05 +00:00
Collaborator

Closes #91
Signed-off-by: Andrey Berezin a.berezin@yadro.com

Closes #91 Signed-off-by: Andrey Berezin <a.berezin@yadro.com>
abereziny added 1 commit 2023-08-08 15:58:32 +00:00
86f5dfa47a [#91] Improve logging for preset
Signed-off-by: Andrey Berezin <a.berezin@yadro.com>
abereziny requested review from storage-services-developers 2023-08-08 15:58:38 +00:00
abereziny requested review from storage-services-committers 2023-08-08 15:58:39 +00:00
abereziny requested review from storage-core-developers 2023-08-08 15:58:39 +00:00
abereziny requested review from storage-core-committers 2023-08-08 15:58:39 +00:00
fyrchik reviewed 2023-08-08 16:00:24 +00:00
@ -41,3 +43,3 @@
if not success:
print(f" > Object {object_name} has not been uploaded.")
log(f"{cmd_line}\n"

Python has some native logging capabilities https://docs.python.org/3/library/logging.html#logging.info , don't we want to use them?

Python has some native logging capabilities https://docs.python.org/3/library/logging.html#logging.info , don't we want to use them?
Poster
Collaborator

We want specific prefix (date, endpoint) to each message so we use custom function.

We want specific prefix (date, endpoint) to each message so we use custom function.
  1. We use endpoint=... syntax in scenarios
  2. Anyway it seems logging can be customized as you wish https://docs.python.org/3/library/logging.html#logging.Formatter

I will create a separate task for this then.

1. We use `endpoint=...` syntax in scenarios 2. Anyway it seems logging can be customized as you wish https://docs.python.org/3/library/logging.html#logging.Formatter I will create a separate task for this then.
anikeev-yadro approved these changes 2023-08-09 06:30:55 +00:00
dstepanov-yadro approved these changes 2023-08-11 07:01:19 +00:00
fyrchik merged commit bf884936a7 into master 2023-08-16 08:25:05 +00:00
Sign in to join this conversation.
No reviewers
TrueCloudLab/storage-services-developers
TrueCloudLab/storage-services-committers
TrueCloudLab/storage-core-developers
No Milestone
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/xk6-frostfs#92
There is no content yet.