Merge pull request #21351 from akien-mga/print_verbose
Add print_verbose to print to stdout only in verbose mode
This commit is contained in:
commit
d442f3d0aa
22 changed files with 68 additions and 123 deletions
|
|
@ -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!");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue