|
25 | 25 | my $otelSpecVers = $versions{'spec:'};
|
26 | 26 | my $otlpSpecVers = $versions{'otlp:'};
|
27 | 27 | my $semconvVers = $versions{'semconv:'};
|
28 |
| -my $warn2 = 0; # TODO remove along with warning 002 |
| 28 | +my $patchMsg2 = 0; # TODO remove along with patch-message 002 |
29 | 29 |
|
30 | 30 | sub printTitleAndFrontMatter() {
|
31 | 31 | print "---\n";
|
|
46 | 46 | } elsif ($ARGV =~ /otel\/specification\/logs\/api.md$/) {
|
47 | 47 | if ($otelSpecVers ne "1.39.0") {
|
48 | 48 | # TODO: delete the enclosing elsif body
|
49 |
| - print STDOUT "WARNING [001]: $0: remove obsolete code now that OTel spec has been updated.\n" |
| 49 | + print STDOUT "INFO [001]: $0: remove obsolete code now that OTel spec has been updated.\n" |
50 | 50 | }
|
51 | 51 | $frontMatterFromFile .= "linkTitle: API\naliases: [bridge-api]\n";
|
52 | 52 | }
|
|
116 | 116 |
|
117 | 117 | # SPECIFICATION custom processing
|
118 | 118 |
|
119 |
| - # TODO: drop the entire if-then-else statement patch code when OTel spec vers contains |
| 119 | + # TODO: drop the entire if statement patch code when OTel spec vers contains |
120 | 120 | # https://github.com/open-telemetry/opentelemetry-specification/pull/4287,
|
121 | 121 | # which should be vers > 1.39.0.
|
122 |
| - if ($otelSpecVers eq "1.39.0") { |
| 122 | + if ($ARGV =~ /otel\/spec/) { |
123 | 123 | s|(/api\.md)#logs-api\b|$1|g;
|
124 |
| - } elsif ($ARGV =~ /otel\/spec/) { |
125 |
| - print STDOUT "WARNING [002]: $0: remove obsolete code now that OTel spec has been updated.\n" unless $warn2++ |
| 124 | + print STDOUT "INFO [002]: $0: remove obsolete patch code now that OTel spec has been updated.\n" |
| 125 | + if $otelSpecVers ne "1.39.0" && !$patchMsg2++ |
126 | 126 | }
|
127 | 127 |
|
128 | 128 | s|\(https://github.com/open-telemetry/opentelemetry-specification\)|($specBasePath/otel/)|;
|
|
0 commit comments