Author: lslezak Date: Tue Jul 15 17:24:07 2008 New Revision: 49110 URL: http://svn.opensuse.org/viewcvs/yast?rev=49110&view=rev Log: - fixed logging Modified: branches/tmp/lslezak/workshop/core/libscr/src/SCR.cc Modified: branches/tmp/lslezak/workshop/core/libscr/src/SCR.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/lslezak/workshop/core/libscr/src/SCR.cc?rev=49110&r1=49109&r2=49110&view=diff ============================================================================== --- branches/tmp/lslezak/workshop/core/libscr/src/SCR.cc (original) +++ branches/tmp/lslezak/workshop/core/libscr/src/SCR.cc Tue Jul 15 17:24:07 2008 @@ -80,15 +80,19 @@ // send the message and get the response DBusMsg reply(connection->call(msg)); - y2internal("Reply type: %d", reply.type()); + y2debug("Reply type: %d", reply.type()); // return the first argument from the reply YCPValue ret = reply.getYCPValue(0); - if (!ret.isNull()) - { - y2internal("Received reply: %s", ret->toString().c_str()); - } + if (!ret.isNull()) + { + y2milestone("Received reply: %s", ret->toString().c_str()); + } + else + { + y2error("Received YCPNull or the value is missing"); + } // validate the reply (check for exceptions) if (reply.type() != DBUS_MESSAGE_TYPE_METHOD_RETURN) @@ -97,7 +101,7 @@ { if (!ret.isNull()) { - y2internal("Received Error reply: %s", ret->toString().c_str()); + y2error("Received Error reply: %s", ret->toString().c_str()); } } @@ -106,7 +110,7 @@ if (!ret.isNull()) { - y2internal("Got reply: %s", ret->toString().c_str()); + y2milestone("Got reply: %s", ret->toString().c_str()); } return ret; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org