Skip to content

Commit fa5b50f

Browse files
committed
Formatting changes
1 parent fb8ff1e commit fa5b50f

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

docs/releasing.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ but some can be 1.0.0 and others 1.0.0a0.
6060

6161
## Open and merge a PR
6262

63-
64-
6563
You will now have the new branch `release-pr/0.11b1` checked out with the two
6664
commits. Push them to your fork and create a PR:
6765

opentelemetry-exporter-gcp-logging/src/opentelemetry/exporter/cloud_logging/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,9 @@ def __init__(
154154
else:
155155
self.default_log_name = "otel_python_inprocess_log_name_temp"
156156
if route_logs_to_stdout_as_json and client:
157-
raise Exception("Cannot route logs to stdout and set a logging client to send logs to.")
157+
raise Exception(
158+
"Cannot route logs to stdout and set a logging client to send logs to."
159+
)
158160
if not route_logs_to_stdout_as_json:
159161
self.client = client or LoggingServiceV2Client(
160162
transport=LoggingServiceV2GrpcTransport(
@@ -227,7 +229,6 @@ def export(self, batch: Sequence[LogData]):
227229

228230
if not self.route_logs_to_stdout_as_json:
229231
self._write_log_entries_to_cloud_logging(log_entries)
230-
231232

232233
def _write_log_entries_to_cloud_logging(self, log_entries: list[LogEntry]):
233234
batch: list[LogEntry] = []

opentelemetry-exporter-gcp-logging/tests/test_cloud_logging.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ def test_too_large_log_raises_warning(caplog) -> None:
6666
"exceeds Cloud Logging's maximum limit of 256000 bytes" in caplog.text
6767
)
6868

69+
6970
def test_logs_printed_to_stdout_as_json(capsys) -> None:
7071
exporter = CloudLoggingExporter(
7172
project_id=PROJECT_ID, route_logs_to_stdout_as_json=True
@@ -84,12 +85,10 @@ def test_logs_printed_to_stdout_as_json(capsys) -> None:
8485
)
8586
stdout = capsys.readouterr().out
8687
assert (
87-
'"logName": "projects/fakeproject/logs/otel_python_inprocess_log_name_temp"' in stdout
88-
)
89-
assert (
90-
'"textPayload": "abc"' in stdout
88+
'"logName": "projects/fakeproject/logs/otel_python_inprocess_log_name_temp"'
89+
in stdout
9190
)
92-
91+
assert '"textPayload": "abc"' in stdout
9392

9493

9594
def test_convert_otlp_dict_body(

0 commit comments

Comments
 (0)