File tree 2 files changed +22
-5
lines changed
2 files changed +22
-5
lines changed Original file line number Diff line number Diff line change @@ -101,5 +101,22 @@ assert_that(
101
101
p . cargo (" run" ),
102
102
execs (). stream (). with_status (0 )
103
103
);
104
+ ```
105
+
106
+ ## Logging
107
+
108
+ Cargo uses [ ` env_logger ` ] ( https://docs.rs/env_logger/*/env_logger/ ) , so you can set
109
+ ` RUST_LOG ` environment variable to get the logs. This is useful both for diagnosing
110
+ bugs in stable Cargo and for local development. Cargo also has internal hierarchical
111
+ profiling infrastructure, which is activated via ` CARGO_PROFILE ` variable
112
+
113
+ ```
114
+ # Outputs all logs with levels debug and higher
115
+ $ RUST_LOG=debug cargo generate-lockfile
116
+
117
+ # Don't forget that you can filter by module as well
118
+ $ RUST_LOG=cargo::core::resolver=trace cargo generate-lockfile
104
119
120
+ # Output first three levels of profiling info
121
+ $ CARGO_PROFILE=3 cargo generate-lockfile
105
122
```
Original file line number Diff line number Diff line change @@ -22,10 +22,9 @@ and unexpected behavior.
22
22
its users' security, please do not open a public issue on GitHub. Instead,
23
23
we ask you to refer to Rust's [ security policy] .**
24
24
25
- Opening an issue is as easy as following [ this
26
- link] [ new-issues ] and filling out the fields.
27
- Here's a template that you can use to file an issue, though it's not necessary to
28
- use it exactly:
25
+ Opening an issue is as easy as following [ this link] [ new-issues ] and filling out
26
+ the fields. Here's a template that you can use to file an issue, though it's not
27
+ necessary to use it exactly:
29
28
30
29
<short summary of the problem>
31
30
@@ -42,7 +41,8 @@ happened instead. Please use https://gist.github.com/ if your examples run long.
42
41
43
42
## Working on issues
44
43
45
- If you're looking for somewhere to start, check out the [ E-easy] [ E-Easy ] tag.
44
+ If you're looking for somewhere to start, check out the [ E-easy] [ E-Easy ] and
45
+ [ E-mentor] [ E-mentor ] tags.
46
46
47
47
Feel free to ask for guidelines on how to tackle a problem on [ IRC] or open a
48
48
[ new issue] [ new-issues ] . This is especially important if you want to add new
You can’t perform that action at this time.
0 commit comments