summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-08-24 14:58:36 +0200
committerGitHub <noreply@github.com>2018-08-24 14:58:36 +0200
commitd442f3d0aa4185f154bee396efaf24ceb73c9d84 (patch)
tree46086425e2349832e9f07f05492ac67d74ecc333 /editor
parent548c26239907c34081a96bff61d653f2a32ac243 (diff)
parentde59fe04e73250229e6ac11f9314e1b75dbdef1a (diff)
Merge pull request #21351 from akien-mga/print_verbose
Add print_verbose to print to stdout only in verbose mode
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_settings.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/editor/editor_settings.cpp b/editor/editor_settings.cpp
index 9278d7676a..bbc00dd542 100644
--- a/editor/editor_settings.cpp
+++ b/editor/editor_settings.cpp
@@ -853,10 +853,7 @@ void EditorSettings::create() {
singleton->data_dir = data_dir;
singleton->cache_dir = cache_dir;
- if (OS::get_singleton()->is_stdout_verbose()) {
-
- print_line("EditorSettings: Load OK!");
- }
+ print_verbose("EditorSettings: Load OK!");
singleton->setup_language();
singleton->setup_network();
@@ -968,8 +965,8 @@ void EditorSettings::save() {
if (err != OK) {
ERR_PRINTS("Error saving editor settings to " + singleton->config_file_path);
- } else if (OS::get_singleton()->is_stdout_verbose()) {
- print_line("EditorSettings Save OK!");
+ } else {
+ print_verbose("EditorSettings: Save OK!");
}
}