Skip to content
This repository was archived by the owner on Nov 1, 2023. It is now read-only.

Commit 74b3795

Browse files
committed
Add extra logging when System.Title is too long
1 parent 2d0d297 commit 74b3795

File tree

1 file changed

+7
-0
lines changed
  • src/ApiService/ApiService/onefuzzlib/notifications

1 file changed

+7
-0
lines changed

src/ApiService/ApiService/onefuzzlib/notifications/Ado.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,13 @@ private async Async.Task<WorkItem> CreateNew() {
405405
);
406406
// try to avoid naming collisions caused by the trim by appending the first 8 characters of the title's hash at the end
407407
_config.AdoFields["System.Title"] = $"{systemTitle[..(MAX_SYSTEM_TITLE_LENGTH - 14)]}... [{systemTitleHashString[..8]}]";
408+
_logTracer.LogInformation(
409+
"System.Title \"{Title}\" was too long ({TitleLength} chars); shortend it to \"{NewTitle}\" ({NewTitleLength} chars)",
410+
systemTitle,
411+
systemTitle.Length,
412+
_config.AdoFields["System.Title"],
413+
_config.AdoFields["System.Title"].Length
414+
);
408415
}
409416

410417
foreach (var field in _config.AdoFields.Keys) {

0 commit comments

Comments
 (0)