Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug with --server-log-enable-file #207

Open
javier-romero opened this issue Jan 22, 2025 · 1 comment
Open

Bug with --server-log-enable-file #207

javier-romero opened this issue Jan 22, 2025 · 1 comment

Comments

@javier-romero
Copy link

Hola, when I try that option I get the following error:

$ clinguin client-server --domain-files graph_coloring/{encoding.lp,instance.lp} --ui-files graph_coloring/ui.lp --backend=ClingraphBackend --clingraph-files=graph_coloring/viz.lp --server-log-enable-file
Exception in thread Thread-1 (start):
Traceback (most recent call last):
  File "/home/davila/miniconda2/envs/clinguin/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/home/davila/miniconda2/envs/clinguin/lib/python3.10/threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "/home/davila/miniconda2/envs/clinguin/lib/python3.10/site-packages/clinguin/server_helper.py", line 33, in start
    endpoints = Endpoints(args)
  File "/home/davila/miniconda2/envs/clinguin/lib/python3.10/site-packages/clinguin/server/presentation/endpoints.py", line 37, in __init__
    Logger.setup_logger(args.log_args, process="server")
  File "/home/davila/miniconda2/envs/clinguin/lib/python3.10/site-packages/clinguin/utils/logger.py", line 145, in setup_logger
    cls._add_file_handler_to_logger(logger, log_arg_dict, log_file_path)
  File "/home/davila/miniconda2/envs/clinguin/lib/python3.10/site-packages/clinguin/utils/logger.py", line 120, in _add_file_handler_to_logger
    with open(log_file_path, "a+", encoding="utf-8") as file_object:
FileNotFoundError: [Errno 2] No such file or directory: 'logs/2025-01-22::13:25:28-clinguin_server.log'
@susuhahnml
Copy link
Collaborator

I plan on changing the logging for the next version anyway, I will make sure this is not an issue then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants