Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #473
Closed
Open
Issue created Jul 05, 2018 by Administrator@rootContributor

[cli] Generator logs to STDOUT when debug options are set

Created by: devplayer0

Description

Since #207, log messages are written to STDOUT and STDERR respectively based on the level of the message, which makes sense.

However, when debugging the models / operations passed to the templates, it would be nice to be able to pipe the JSON directly into a file / program which could parse it directly. Currently the piped output will include any of the messages written to STDOUT (which is everything except for errors), which means that it is unparsable.

openapi-generator version

Latest from master

OpenAPI declaration file content or url

N/A

Command line used for generation

java -DdebugModels -jar openapi-generator/modules/openapi-generator-cli/target/openapi-generator-cli.jar generate -g java -i cellar.json -o /tmp/cellar > generate.json

Steps to reproduce

Pipe the output of any generate command with a debug flag set (such as debugModels or debugOperations)

Related issues/PRs

This is in direct response to #207.

Suggest a fix/enhancement

See PR #474

Assignee
Assign to
Time tracking