Skip to content

Commit

Permalink
AnyAgent - improved logging to easier find bugs similar to bsc#1030425
Browse files Browse the repository at this point in the history
- 3.2.3
  • Loading branch information
lslezak committed Apr 20, 2017
1 parent a0fefb4 commit 54119f3
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 3 deletions.
17 changes: 15 additions & 2 deletions agent-any/src/AnyAgentComplex.cc
Expand Up @@ -232,14 +232,20 @@ AnyAgent::parseList (char const *&line, const YCPList & syntax, bool optional)
YCPValue vl = parseData (line, syntax->value (0), optional);
optional = false;
if (vl.isNull ())
break;
{
y2warning("Value not found at line: '%s'", line);
break;
}
if (!vl->isVoid ())
list->add (vl);
y2debug ("vl (%s)", vl->toString ().c_str ());
// value of separator/string
YCPValue vs = parseData (line, syntax->value (1), false);
if (vs.isNull ())
break;
{
y2warning("Separator not found at line: '%s'", line);
break;
}
}

y2debug ("list (%s)", list->toString ().c_str ());
Expand Down Expand Up @@ -511,6 +517,13 @@ AnyAgent::parseData (char const *&line, const YCPValue & syntax, bool optional)
tupleName.push ("");
tupleValue.push (YCPNull ());
YCPValue tv = parseTuple (line, term->args (), optional);
if (tv.isNull())
{
if (optional)
y2milestone("No optional Tuple matches the line: '%s'", line);
else
y2error("No Tuple matches the line: '%s'", line);
}
tupleName.pop ();
tupleValue.pop ();
return tv;
Expand Down
7 changes: 7 additions & 0 deletions package/yast2-core.changes
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Apr 19 19:10:40 UTC 2017 - lslezak@suse.cz

- AnyAgent - improved logging to easier find bugs similar to
bsc#1030425
- 3.2.3

-------------------------------------------------------------------
Wed Jan 4 09:16:02 UTC 2017 - jreidinger@suse.com

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-core.spec
Expand Up @@ -26,7 +26,7 @@
%bcond_with werror

Name: yast2-core
Version: 3.2.2
Version: 3.2.3
Release: 0
Url: https://github.com/yast/yast-core

Expand Down

0 comments on commit 54119f3

Please sign in to comment.