Start moving from logging to tracing on collab server
Install some spans. Probably more work to do here. Co-Authored-By: Antonio Scandurra <me@as-cii.com>
This commit is contained in:
parent
2d9d30f74a
commit
1fe964ac16
8 changed files with 63 additions and 85 deletions
|
@ -41,11 +41,7 @@ impl AppState {
|
|||
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<()> {
|
||||
if std::env::var("LOG_JSON").is_ok() {
|
||||
json_env_logger::init();
|
||||
} else {
|
||||
env_logger::init();
|
||||
}
|
||||
env_logger::init();
|
||||
|
||||
if let Err(error) = env::load_dotenv() {
|
||||
log::error!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue