chore: update launch option

This commit is contained in:
appflowy 2022-02-20 09:58:25 +08:00
parent c9424c5d55
commit 9012494e1f
3 changed files with 5 additions and 7 deletions

View File

@ -11,8 +11,7 @@
"type": "dart",
"preLaunchTask": "build_flowy_sdk",
"env":{
"RUST_LOG":"info",
"INTEGRATION_ENV":"develop",
"RUST_LOG":"debug"
},
"cwd": "${workspaceRoot}"
},
@ -23,8 +22,7 @@
"type": "dart",
"preLaunchTask": "build_flowy_sdk",
"env":{
"RUST_LOG":"trace",
"INTEGRATION_ENV":"develop",
"RUST_LOG":"trace"
},
"cwd": "${workspaceRoot}"
},

View File

@ -1,6 +1,7 @@
import 'dart:io';
import 'package:app_flowy/startup/tasks/prelude.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:get_it/get_it.dart';
import 'package:app_flowy/workspace/infrastructure/deps_resolver.dart';
@ -115,8 +116,8 @@ IntegrationEnv integrationEnv() {
if (Platform.environment.containsKey('FLUTTER_TEST')) {
return IntegrationEnv.test;
}
const value = String.fromEnvironment('INTEGRATION_ENV');
if (value == 'release') {
if (kReleaseMode) {
return IntegrationEnv.release;
}

View File

@ -38,7 +38,6 @@ pub struct FlowySDKConfig {
impl fmt::Debug for FlowySDKConfig {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_struct("FlowySDKConfig")
.field("name", &self.name)
.field("root", &self.root)
.field("server_config", &self.server_config)
.finish()