Skip to content

Commit

Permalink
Merge pull request #15 from edgenai/fix/issue-14
Browse files Browse the repository at this point in the history
  • Loading branch information
pedro-devv authored Feb 2, 2024
2 parents 65e4685 + 60f9376 commit f37f7ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion crates/edgen_server/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,11 @@ fn serve(args: &cli::Serve) -> EdgenResult {

#[tokio::main]
async fn start_server(args: &cli::Serve) -> EdgenResult {
console_subscriber::init();
// The console is disabled in release builds, so there is no need to initialise this
#[cfg(debug_assertions)]
{
console_subscriber::init();
}

SETTINGS
.write()
Expand Down
2 changes: 1 addition & 1 deletion edgen/src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/

// Tauri - prevents additional console window on Windows in release, DO NOT REMOVE!!
//#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]

#[cfg(not(feature = "no_gui"))]
mod gui;
Expand Down

0 comments on commit f37f7ad

Please sign in to comment.