Skip to content

Commit

Permalink
Merge pull request #2 from supabase/hide-lisetning
Browse files Browse the repository at this point in the history
fix:  Print listening messages only on debug mode.
  • Loading branch information
laktek authored Feb 2, 2023
2 parents 1674be2 + 3a4952d commit 3642e04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/src/server.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::js_worker;
use anyhow::{bail, Error};
use log::{error, info};
use log::{debug, error, info};
use std::net::IpAddr;
use std::net::Ipv4Addr;
use std::net::SocketAddr;
Expand Down Expand Up @@ -97,7 +97,7 @@ impl Server {
pub async fn listen(&self) -> Result<(), Error> {
let addr = SocketAddr::new(IpAddr::V4(self.ip), self.port);
let listener = TcpListener::bind(&addr).await?;
info!("listening on {:?}", listener.local_addr()?);
debug!("edge-runtime is listening on {:?}", listener.local_addr()?);

loop {
tokio::select! {
Expand Down

0 comments on commit 3642e04

Please sign in to comment.