Skip to Content
0
Jan 13, 2021 at 03:40 PM

cds build & cds watch with error log-level

392 Views

Hi,

we have problem in our CI because of large logs created by CAP

 cds build/all --clean 

Is writing at the end all files, if this includes an node_modules in /app/mygreatApp... its flooding the terminal

[cds] - done > wrote output to:
  gen\db\.cfignore
  gen\db\data.js
  ......

While running serve; basically the same applies

cds serve

all request/queries are logged.


For both cases this is not working

npx cds build --log-level Error
npx cds build --log-level error
npx cds build --log-level=error npx cds build --log-level=Error

How to limit all cap cli operations to error?

fyi . .cdsrc.json

{
    "build": {
        "target": "gen",
        "tasks": [
        {"src":"db","for":"hana","options":{"model":["db","srv"]}},
        {"src":"srv","for":"node-cf","options":{"model":["db","srv"]}},
        {"src":"app","for":"fiori","options":{"model":[ "db", "srv", "app"]}}
        ]
    }
}