summaryrefslogtreecommitdiff
path: root/examples/cli.rs
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2019-04-18 16:57:59 +0200
committerYorhel <git@yorhel.nl>2019-04-18 16:57:59 +0200
commit56c77e94185ed35bdbc474a0377eba0ac8117ba9 (patch)
tree6f191ba150dd4628fe7ab07b7b0c05fcf23d617c /examples/cli.rs
parentcb642ff75eb1fdfa5ec0d944ef4a148eed54f761 (diff)
Add EventList builder
Diffstat (limited to 'examples/cli.rs')
-rw-r--r--examples/cli.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/cli.rs b/examples/cli.rs
index 2995bac..81820ad 100644
--- a/examples/cli.rs
+++ b/examples/cli.rs
@@ -15,7 +15,7 @@ fn main() {
}
}
});
- s.setevents(&["NOTICE", "INFO", "WARN", "ERR"]).unwrap();
+ s.setevents( torctl::EventList::default().notice() ).unwrap();
s.setconf(&[("SocksPort", Some("10245"))]).unwrap();
dbg!(s.getconf(&["ContactInfo", "DataDirectory", "HiddenServiceOptions"]).unwrap());