summary refs log tree commit diff
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2012-01-20 01:04:36 -0800
committerBrian Anderson <banderson@mozilla.com>2012-01-20 01:06:26 -0800
commit341540b6948c535265ae2e9b061c23fc4978c63d (patch)
tree184d7546d786574a0de51610903db0833f3ef570
parent2d9910383e35735239b40649ae3de8e78278e14f (diff)
downloadrust-341540b6948c535265ae2e9b061c23fc4978c63d.tar.gz
rust-341540b6948c535265ae2e9b061c23fc4978c63d.zip
doc: Mention 'debug' log level in tutorial. Closes #1579
-rw-r--r--doc/tutorial.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/tutorial.md b/doc/tutorial.md
index 2a3e73d3554..179f0ccdbb8 100644
--- a/doc/tutorial.md
+++ b/doc/tutorial.md
@@ -744,8 +744,8 @@ log(warn, "hi");
 log(error, (1, [2.5, -1.8]));
 ~~~~
 
-The first argument is the log level (levels `info`, `warn`, and
-`error` are predefined), and the second is the value to log. By
+The first argument is the log level (levels `debug`, `info`, `warn`,
+and `error` are predefined), and the second is the value to log. By
 default, you *will not* see the output of that first log statement,
 which has `warn` level. The environment variable `RUST_LOG` controls
 which log level is used. It can contain a comma-separated list of
@@ -753,7 +753,7 @@ paths for modules that should be logged. For example, running `rustc`
 with `RUST_LOG=rustc::front::attr` will turn on logging in its
 attribute parser. If you compile a program named `foo.rs`, its
 top-level module will be called `foo`, and you can set `RUST_LOG` to
-`foo` to enable `warn` and `info` logging for the module.
+`foo` to enable `warn`, `info` and `debug` logging for the module.
 
 Turned-off `log` statements impose minimal overhead on the code that
 contains them, so except in code that needs to be really, really fast,