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:
Rémi Verschelde 2018-08-24 14:58:36 +02:00 committed by GitHub
commit d442f3d0aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 68 additions and 123 deletions

View file

@ -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!");
}
}