Skip to content

Commit

Permalink
Merge pull request #12 from Authress/add-version-to-logs
Browse files Browse the repository at this point in the history
Add version to logs
  • Loading branch information
wparad authored Feb 1, 2024
2 parents 8c73259 + a19f08a commit dcf4add
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion examples/server/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ async fn main() {
server::create(addr, &DATABASES).await;
});

info!("Authress Local is now running on localhost:8888");
const VERSION: &str = env!("CARGO_PKG_VERSION");

info!("Authress Local (Version: {}) is now running on localhost:8888", VERSION);
task.await.unwrap();
}
2 changes: 1 addition & 1 deletion src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6883,7 +6883,7 @@ impl<T, C> hyper::service::Service<(Request<Body>, C)> for Service<T, C> where
.expect("Unable to create OPTIONS response"));
},

z if path.matched(paths::ID_) => method_not_allowed(),
_ if path.matched(paths::ID_) => method_not_allowed(),
_ if path.matched(paths::ID_API_AUTHENTICATION_OAUTH_TOKENS) => method_not_allowed(),
_ if path.matched(paths::ID_V1_ACCOUNTS) => method_not_allowed(),
_ if path.matched(paths::ID_V1_ACCOUNTS_ACCOUNTID) => method_not_allowed(),
Expand Down

0 comments on commit dcf4add

Please sign in to comment.