Skip to content

[BUG] Logging Initialization Issue in Generated Kafka Consumer Code #241

@sancheet230

Description

@sancheet230

Describe the bug.

The generated Kafka consumer code currently calls logging methods (e.g., logger.info(...)) without a proper logger initialization. This results in compile-time errors and may lead to runtime issues

Expected behavior

The generated code should initialize a logger properly, ensuring that all calls to logging methods (e.g., logger.info(...)) reference a valid, pre-initialized logger instance

Screenshots

NA

How to Reproduce

  1. Generate the Kafka consumer code using the AsyncAPI templates.

  2. Attempt to compile the generated code.

  3. Observe that the logging calls are made without a declared logger, causing compile-time errors.

🖥️ Device Information [optional]

  • Operating System (OS):
  • Browser:
  • Browser Version:

👀 Have you checked for similar open issues?

  • I checked and didn't find similar issue

🏢 Have you read the Contributing Guidelines?

Are you willing to work on this issue ?

Yes I am willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions