From cf9e365bc262be93d20c0ca05e7f255926a7ceb6 Mon Sep 17 00:00:00 2001 From: Damon Kohler Date: Tue, 23 Aug 2016 01:31:36 -0700 Subject: [PATCH] Improved logging for loading Lua configurations. (#4) --- cartographer/common/configuration_file_resolver.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cartographer/common/configuration_file_resolver.cc b/cartographer/common/configuration_file_resolver.cc index 6ceb6ec..0b593f8 100644 --- a/cartographer/common/configuration_file_resolver.cc +++ b/cartographer/common/configuration_file_resolver.cc @@ -37,10 +37,11 @@ string ConfigurationFileResolver::GetFullPathOrDie(const string& basename) { const string filename = path + "/" + basename; std::ifstream stream(filename.c_str()); if (stream.good()) { + LOG(INFO) << "Found '" << filename << "' for '" << basename << "'."; return filename; } } - LOG(FATAL) << "File " << basename << " was not found."; + LOG(FATAL) << "File '" << basename << "' was not found."; } string ConfigurationFileResolver::GetFileContentOrDie(const string& basename) {