diff options
Diffstat (limited to 'src/common/file.cc')
-rw-r--r-- | src/common/file.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common/file.cc b/src/common/file.cc index 822c678..73537ec 100644 --- a/src/common/file.cc +++ b/src/common/file.cc @@ -17,6 +17,7 @@ std::string File::moddir = ""; void File::open(const char * filename, ios_base::openmode mode) { + file_name.assign(filename); std::string fn; // if moddir is set, try the mods subdir first @@ -58,9 +59,9 @@ void File::open(const char * filename, ios_base::openmode mode) std::ifstream::open(fn.c_str(), mode); if (!this->is_open()) { - condebug << "File could not open " << filename << std::endl; + conmesg << "File could not open " << filename << std::endl; } else { - conmesg << "File opened " << fn << std::endl; + condebug << "File opened " << fn << std::endl; } } |