Skip to content

KeyError: 'APP_NAME', formatter.add_service_name(self.application.config["APP_NAME"]) #242

Description

@NguyenDangBinh

Describe the bug
from pyms.flask.app import Microservice
ms = Microservice()
app = ms.create_app()
if name == 'main':
app.run()

And I had this errors. Can I help me?
Traceback (most recent call last):
File "main.py", line 7, in
app = ms.create_app()
File "C:\Users\DELL\AppData\Local\Programs\Python\Python36\lib\site-packages\pyms\flask\app\create_app.py", line 164, in create_app
self.init_logger()
File "C:\Users\DELL\AppData\Local\Programs\Python\Python36\lib\site-packages\pyms\flask\app\create_app.py", line 104, in init_logger
formatter.add_service_name(self.application.config["APP_NAME"])
KeyError: 'APP_NAME'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions