Skip to content

Commit

Permalink
[chore](fe) Log the cloud/local mode (#38531)
Browse files Browse the repository at this point in the history
  • Loading branch information
w41ter authored and dataroaring committed Jul 31, 2024
1 parent 9fbc89b commit 872ff51
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion be/src/runtime/exec_env_init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,8 @@ Status ExecEnv::_init(const std::vector<StorePath>& store_paths,
options.broken_paths = broken_paths;
options.backend_uid = doris::UniqueId::gen_uid();
if (config::is_cloud_mode()) {
std::cout << "start BE in cloud mode" << std::endl;
std::cout << "start BE in cloud mode, cloud_unique_id: " << config::cloud_unique_id
<< ", meta_service_endpoint: " << config::meta_service_endpoint << std::endl;
_storage_engine = std::make_unique<CloudStorageEngine>(options.backend_uid);
} else {
std::cout << "start BE in local mode" << std::endl;
Expand Down
7 changes: 7 additions & 0 deletions fe/fe-core/src/main/java/org/apache/doris/DorisFE.java
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,13 @@ private static void printVersion() {
LOG.info("Build info: {}", Version.DORIS_BUILD_INFO);
LOG.info("Build hash: {}", Version.DORIS_BUILD_HASH);
LOG.info("Java compile version: {}", Version.DORIS_JAVA_COMPILE_VERSION);

if (Config.isCloudMode()) {
LogUtils.stdout("Run FE in the cloud mode, cloud_unique_id: " + Config.cloud_unique_id
+ ", meta_service_endpoint: " + Config.meta_service_endpoint);
} else {
LogUtils.stdout("Run FE in the local mode");
}
}

private static void checkCommandLineOptions(CommandLineOptions cmdLineOpts) {
Expand Down

0 comments on commit 872ff51

Please sign in to comment.