[colobot] 56/74: Change CBot file log messages
Didier Raboud
odyx at moszumanska.debian.org
Mon Nov 7 07:50:05 UTC 2016
This is an automated email from the git hooks/post-receive script.
odyx pushed a commit to branch debian/master
in repository colobot.
commit a96835e35f086b2560ea8f64af45043d48a02b6c
Author: krzys-h <krzys_h at interia.pl>
Date: Fri Sep 30 17:08:37 2016 +0200
Change CBot file log messages
Open mode is logged now. Additionally fixed incorrect file path in log when deleting files.
---
src/script/scriptfunc.cpp | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/script/scriptfunc.cpp b/src/script/scriptfunc.cpp
index c3e5755..7f6cb97 100644
--- a/src/script/scriptfunc.cpp
+++ b/src/script/scriptfunc.cpp
@@ -3011,7 +3011,7 @@ public:
if (Opened())
{
- GetLogger()->Info("CBot open file '%s'\n", filename.c_str());
+ GetLogger()->Info("CBot open file '%s', mode '%c'\n", filename.c_str(), mode);
m_numFilesOpen++;
}
}
@@ -3020,7 +3020,7 @@ public:
{
if (Opened())
{
- GetLogger()->Debug("CBot close file\n");
+ GetLogger()->Info("CBot close file\n");
m_numFilesOpen--;
}
@@ -3079,8 +3079,9 @@ public:
virtual bool DeleteFile(const std::string& filename) override
{
- GetLogger()->Info("CBot delete file '%s'\n", filename.c_str());
- return CResourceManager::Remove(PrepareFilename(filename));
+ std::string fname = PrepareFilename(filename);
+ GetLogger()->Info("CBot delete file '%s'\n", fname.c_str());
+ return CResourceManager::Remove(fname);
}
private:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/colobot.git
More information about the Pkg-games-commits
mailing list