From 81e996123e008056c2e6933a1bfbe0ce1b5c1afe Mon Sep 17 00:00:00 2001 From: Sehyo Chang Date: Thu, 30 Jan 2025 15:08:37 -0800 Subject: [PATCH] put logging under leptos --- crates/fluvio-web/Makefile | 14 +++----------- crates/fluvio-web/src/fluvio.rs | 1 + 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/crates/fluvio-web/Makefile b/crates/fluvio-web/Makefile index d7c6e8c..7d9b0be 100644 --- a/crates/fluvio-web/Makefile +++ b/crates/fluvio-web/Makefile @@ -1,14 +1,6 @@ -BASE_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))/../../) -include $(BASE_DIR)/common.mk - PROJ_NAME = fluvio-web -build: - cargo build -p $(PROJ_NAME) $(WASM_BUILD_SETTING) +TARGET=--target wasm32-unknown-unknown -# init directory to satify clippy -fake_dist: - mkdir -p release/dist - -clean: - rm -rf release/dist \ No newline at end of file +build: + cargo build -p $(PROJ_NAME) $(WASM_BUILD_SETTING) $(TARGET) diff --git a/crates/fluvio-web/src/fluvio.rs b/crates/fluvio-web/src/fluvio.rs index 5a3a9a9..552a303 100644 --- a/crates/fluvio-web/src/fluvio.rs +++ b/crates/fluvio-web/src/fluvio.rs @@ -46,6 +46,7 @@ impl AppServices { parsed_query.token } else { + #[cfg(feature = "leptos")] leptos::logging::log!("No query in fluvio conn string"); None };