Skip to content

File "logging.conf" has a redundant ']' in line 32  #175

@jushe

Description

@jushe
[handler_fileHandlers]]# fileHandlers
    class = logging.handlers.RotatingFileHandler
    level = DEBUG
    formatter = fmt
    args = ('logs/sdk.log', 'a', 10000, 3, 'UTF-8')

cause this error:

Traceback (most recent call last):
  File "/content/FaceX-Zoo/face_sdk/detect_and_align.py", line 2, in <module>
    from core.model_handler.face_alignment.FaceAlignModelHandler import FaceAlignModelHandler
  File "/content/FaceX-Zoo/face_sdk/core/model_handler/face_alignment/FaceAlignModelHandler.py", line 7, in <module>
    logging.config.fileConfig("config/logging.conf")
  File "/usr/lib/python3.10/logging/config.py", line 80, in fileConfig
    handlers = _install_handlers(cp, formatters)
  File "/usr/lib/python3.10/logging/config.py", line 135, in _install_handlers
    section = cp["handler_%s" % hand]
  File "/usr/lib/python3.10/configparser.py", line 965, in __getitem__
    raise KeyError(key)
KeyError: 'handler_fileHandlers'

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