Add some debug trace info.

Originally committed to SVN as r4418.
This commit is contained in:
Amar Takhar 2010-06-03 18:09:00 +00:00
parent 709718ffb6
commit 401560b190
4 changed files with 11 additions and 2 deletions

View File

@ -24,12 +24,14 @@
#endif
#include "libaegisub/access.h"
#include "libaegisub/log.h"
#include "libaegisub/mru.h"
#include "libaegisub/io.h"
namespace agi {
MRUManager::MRUManager(const std::string &config, const std::string &default_config): config_name(config) {
LOG_D("agi/mru") << "Loading MRU List";
json::UnknownElement root;
std::istream *stream;

View File

@ -25,12 +25,15 @@
#endif
#include "libaegisub/io.h"
#include "libaegisub/log.h"
#include "option_visit.h"
namespace agi {
Options::Options(const std::string &file, const std::string& default_config):
config_file(file), config_default(default_config), config_loaded(false) {
LOG_D("agi/options") << "New Options object";
std::istringstream stream(default_config);
LoadConfig(stream);
}

View File

@ -27,6 +27,7 @@
#endif
#include "libaegisub/io.h"
#include "libaegisub/log.h"
#include "libaegisub/util.h"
@ -34,6 +35,7 @@ namespace agi {
namespace io {
std::ifstream* Open(const std::string &file) {
LOG_D("agi/io/open/file") << file;
acs::CheckFileRead(file);
std::ifstream *stream = new std::ifstream(file.c_str());
@ -46,7 +48,7 @@ std::ifstream* Open(const std::string &file) {
Save::Save(const std::string& file): file_name(file) {
LOG_D("agi/io/save/file") << file;
const std::string pwd = util::DirName(file);
acs::CheckDirWrite(pwd.c_str());

View File

@ -27,6 +27,7 @@
#endif
#include "libaegisub/io.h"
#include "libaegisub/log.h"
#include "libaegisub/util.h"
@ -34,6 +35,7 @@ namespace agi {
namespace io {
std::ifstream* Open(const std::string &file) {
LOG_D("agi/io/open/file") << file;
acs::CheckFileRead(file);
std::ifstream *stream = new std::ifstream(file.c_str());
@ -48,7 +50,7 @@ std::ifstream* Open(const std::string &file) {
Save::Save(const std::string& file): file_name(file) {
LOG_D("agi/io/save/file") << file;
const std::string pwd = util::DirName(file);
acs::CheckDirWrite(pwd.c_str());