Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(runtime,codegen): avoid double timestamps problem #1210

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion codegen/src/shuttle_main/mod.rs
Expand Up @@ -16,8 +16,10 @@ pub(crate) fn r#impl(_attr: TokenStream, item: TokenStream) -> TokenStream {
let tracing_setup = if cfg!(feature = "setup-tracing") {
Some(quote! {
use shuttle_runtime::colored::*;
use shuttle_runtime::tracing_subscriber::{registry, fmt, prelude::*};
shuttle_runtime::colored::control::set_override(true);
shuttle_runtime::tracing_subscriber::fmt::init();
registry().with(fmt::layer().without_time()).init();
oddgrd marked this conversation as resolved.
Show resolved Hide resolved

println!(
"{}\n{}\nTo disable tracing, remove the default features from {}:\n{}\n{}",
"Shuttle's default tracing subscriber is initialized!".yellow().bold(),
Expand Down
2 changes: 1 addition & 1 deletion runtime/src/resource_tracker.rs
Expand Up @@ -56,7 +56,7 @@ impl ResourceTracker {

macro_rules! log {
($msg:expr) => {
println!("{} [Resource][{}] {}", chrono::Utc::now(), B::TYPE, $msg);
println!("[Resource][{}] {}", B::TYPE, $msg);
};
}

Expand Down