-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
env_logger was doing it, tracing wasn't. Make sure that both do it.
- Loading branch information
Showing
3 changed files
with
9 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Copyright (C) 2023-2024 Daniel Mueller <[email protected]> | ||
# Copyright (C) 2023-2025 Daniel Mueller <[email protected]> | ||
# SPDX-License-Identifier: (Apache-2.0 OR MIT) | ||
|
||
name: Publish | ||
|
@@ -58,7 +58,7 @@ jobs: | |
--request POST \ | ||
--url https://api.github.com/repos/${{ github.repository }}/releases \ | ||
--header "Accept: application/vnd.github+json" \ | ||
--header "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}"\ | ||
--header "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ | ||
--header "X-GitHub-Api-Version: 2022-11-28" \ | ||
--data "{ | ||
\"tag_name\":\"v${version}\", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright (C) 2019-2023 Daniel Mueller <[email protected]> | ||
// Copyright (C) 2019-2025 Daniel Mueller <[email protected]> | ||
// SPDX-License-Identifier: (Apache-2.0 OR MIT) | ||
|
||
extern crate proc_macro; | ||
|
@@ -167,7 +167,9 @@ fn expand_logging_init(attribute_args: &AttributeArgs) -> Tokens { | |
{ | ||
let mut env_logger_builder = ::test_log::env_logger::builder(); | ||
#add_default_log_filter | ||
let _ = env_logger_builder.is_test(true).try_init(); | ||
let _ = env_logger_builder | ||
.target(::test_log::env_logger::Target::Stderr) | ||
.is_test(true).try_init(); | ||
} | ||
} | ||
} | ||
|
@@ -226,7 +228,7 @@ fn expand_tracing_init(attribute_args: &AttributeArgs) -> Tokens { | |
let _ = ::test_log::tracing_subscriber::FmtSubscriber::builder() | ||
.with_env_filter(#env_filter) | ||
.with_span_events(__internal_event_filter) | ||
.with_test_writer() | ||
.with_writer(::test_log::tracing_subscriber::fmt::TestWriter::with_stderr) | ||
.try_init(); | ||
} | ||
} | ||
|