Skip to content

Commit

Permalink
- adapted to namespace changes in yast2-core
Browse files Browse the repository at this point in the history
  • Loading branch information
aschnell committed Jun 26, 2012
1 parent d4da598 commit 0b20aa9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions package/yast2-python-bindings.changes
@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jun 26 16:08:35 CEST 2012 - aschnell@suse.de

- adapted to namespace changes in yast2-core

-------------------------------------------------------------------
Fri Nov 25 12:24:35 UTC 2011 - coolo@suse.com

Expand Down
10 changes: 5 additions & 5 deletions src/PythonLogger.cc
@@ -1,23 +1,23 @@
#include "PythonLogger.h"
#include <ycp/ExecutionEnvironment.h>

extern ExecutionEnvironment ee;

void
PythonLogger::error (string error_message)
{
y2_logger (LOG_ERROR,"Python",ee.filename ().c_str ()
,ee.linenumber (),"","%s", error_message.c_str ());
y2_logger(LOG_ERROR, "Python", YaST::ee.filename().c_str(), YaST::ee.linenumber(),
"", "%s", error_message.c_str());
}


void
PythonLogger::warning (string warning_message)
{
y2_logger (LOG_ERROR,"Python",ee.filename ().c_str ()
,ee.linenumber (),"","%s", warning_message.c_str ());
y2_logger(LOG_ERROR, "Python", YaST::ee.filename().c_str(), YaST::ee.linenumber(),
"", "%s", warning_message.c_str());
}


PythonLogger*
PythonLogger::instance ()
{
Expand Down

0 comments on commit 0b20aa9

Please sign in to comment.