Skip to content

Commit 5292e65

Browse files
committed
Update default log level.
This will make it easy to see when deprecated URLs are no longer in use. Also nice for new users. Also: * "diskuto.sqlite3" is the new default db.
1 parent 37a4246 commit 5292e65

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

README.md

-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ For more information on how Diskuto accomplishes this, see: [How Does It Work?]
4040
* File attachments
4141
* Server renders a plain HTML version of content that is viewable and indexable online.
4242
Ex: <https://blog.nfnitloop.com/u/A719rvsCkuN2SC5W2vz5hypDE2SpevNTUsEXrVFe9XQ7/>
43-
* Server also includes an in-browser client for viewing & posting.
44-
Ex: <https://blog.nfnitloop.com/client/#/u/A719rvsCkuN2SC5W2vz5hypDE2SpevNTUsEXrVFe9XQ7/>
4543

4644

4745
Getting Started

src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ struct ServeCommand {
6868
#[derive(StructOpt, Debug, Clone)]
6969
pub(crate) struct BackendOptions
7070
{
71-
#[structopt(long, default_value = "feoblog.sqlite3")]
71+
#[structopt(long, default_value = "diskuto.sqlite3")]
7272
pub sqlite_file: String,
7373
}
7474

src/server.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ use pagination::Paginator;
4747

4848
pub(crate) fn serve(command: ServeCommand) -> Result<(), anyhow::Error> {
4949

50-
env_logger::init();
50+
env_logger::init_from_env(env_logger::Env::default()
51+
.default_filter_or("info,actix_server::worker=warn")
52+
);
53+
5154
sodiumoxide::init().expect("sodiumoxide::init()");
5255

5356
let ServeCommand{open, backend_options, mut binds} = command;

0 commit comments

Comments
 (0)