mirror of
https://github.com/chatmail/core.git
synced 2026-05-21 07:46:31 +03:00
feat(deltachat-repl): enable INFO logging by default and add timestamps
This commit is contained in:
@@ -27,7 +27,7 @@ $ curl https://sh.rustup.rs -sSf | sh
|
|||||||
Compile and run Delta Chat Core command line utility, using `cargo`:
|
Compile and run Delta Chat Core command line utility, using `cargo`:
|
||||||
|
|
||||||
```
|
```
|
||||||
$ RUST_LOG=deltachat_repl=info cargo run -p deltachat-repl -- ~/deltachat-db
|
$ cargo run -p deltachat-repl -- ~/deltachat-db
|
||||||
```
|
```
|
||||||
where ~/deltachat-db is the database file. Delta Chat will create it if it does not exist.
|
where ~/deltachat-db is the database file. Delta Chat will create it if it does not exist.
|
||||||
|
|
||||||
@@ -121,7 +121,7 @@ $ cargo build -p deltachat_ffi --release
|
|||||||
|
|
||||||
- `DCC_MIME_DEBUG`: if set outgoing and incoming message will be printed
|
- `DCC_MIME_DEBUG`: if set outgoing and incoming message will be printed
|
||||||
|
|
||||||
- `RUST_LOG=deltachat_repl=info,async_imap=trace,async_smtp=trace`: enable IMAP and
|
- `RUST_LOG=async_imap=trace,async_smtp=trace`: enable IMAP and
|
||||||
SMTP tracing in addition to info messages.
|
SMTP tracing in addition to info messages.
|
||||||
|
|
||||||
### Expensive tests
|
### Expensive tests
|
||||||
|
|||||||
@@ -481,7 +481,10 @@ async fn handle_cmd(
|
|||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() -> Result<(), Error> {
|
async fn main() -> Result<(), Error> {
|
||||||
let _ = pretty_env_logger::try_init();
|
pretty_env_logger::formatted_timed_builder()
|
||||||
|
.parse_default_env()
|
||||||
|
.filter_module("deltachat_repl", log::LevelFilter::Info)
|
||||||
|
.init();
|
||||||
|
|
||||||
let args = std::env::args().collect();
|
let args = std::env::args().collect();
|
||||||
start(args).await?;
|
start(args).await?;
|
||||||
|
|||||||
Reference in New Issue
Block a user