Skip to content

Commit

Permalink
Log the CodeDB loaded on boot.
Browse files Browse the repository at this point in the history
  • Loading branch information
brixen committed Feb 28, 2016
1 parent 448cc0a commit cfca89f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vm/environment.cpp
Expand Up @@ -634,9 +634,12 @@ namespace rubinius {
void Environment::load_core(STATE, std::string root) {
try {
if(CodeDB::valid_database_p(state, config.codedb_core_path.value)) {
utilities::logger::write("loading CodeDB: %s", config.codedb_core_path.value.c_str());
CodeDB::open(state, config.codedb_core_path.value.c_str());
} else {
std::string core = root + "/core";

utilities::logger::write("loading CodeDB: %s", core.c_str());
CodeDB::open(state, core.c_str());
}
} catch(RubyException& exc) {
Expand Down

0 comments on commit cfca89f

Please sign in to comment.