From 647dddf98545a7df44137e9285229a33184f9552 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 10 Nov 2007 14:28:58 +0000 Subject: deug messages --- src/common/file.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/common/file.cc') 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; } } -- cgit v1.2.3