Browse Source

Merge pull request #5553 from ghalliday/issue11043

HPCC-11043 Add newlines to prevent gigantic lines in logging

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 11 years ago
parent
commit
efd1382477
1 changed files with 2 additions and 1 deletions
  1. 2 1
      ecl/hql/hqlthql.cpp

+ 2 - 1
ecl/hql/hqlthql.cpp

@@ -1811,6 +1811,7 @@ void HqltHql::toECL(IHqlExpression *expr, StringBuffer &s, bool paren, bool inTy
                 bool first = true;
                 expandTransformValues(s, cur, first);
                 s.append("}");
+                queryNewline(s);
                 if (xgmmlGraphText)
                 {
                     if (child0->numChildren() != 1)
@@ -2035,7 +2036,7 @@ void HqltHql::toECL(IHqlExpression *expr, StringBuffer &s, bool paren, bool inTy
                 IValue * value = child0->queryValue();
                 if (value)
                     value->getUTF8Value(s);
-                s.append("ENDC++");
+                s.append("ENDC++\n");
                 break;
             }
         case no_nofold: