-
Notifications
You must be signed in to change notification settings - Fork 15
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
Is there any way to hide non-critical logs to stdout? #85
Comments
Hey, I'm assuming you are using |
Anyways, thanks for you issue! Since the state saving logs could also fill stdout with a lot of logs, we should maybe think about adding a verbosity level for the whole DEHB class and not just the |
They appear to be coming from dehb.py:119, removing that line solved the issue for me def reset(self):
self.inc_score = np.inf
self.inc_config = None
self.population = None
self.fitness = None
self.traj = []
self.runtime = []
self.history = []
self.logger.info("\n\nRESET at {}\n\n".format(time.strftime("%x %X %Z"))) |
Nice to hear, that this could solve your issue. In the upcoming release the logging structure will anyways be adjusted since currently for every instantiation of DEHB the logs will be written to some specific file. In the upcoming release it will just be written to |
Good to know, thanks for looking into the issue and looking forward to the fix.
Will this affect the ability to run multiple DEHB instances running simultaneously? In my use case, the host program optimizes many different models in parallel. |
This should not, assuming each DEHB instance is an independent optimization run since then the |
Sorry, I must have overlooked your comment @u3Izx9ql7vW4 |
Hi,
The dehb package is producing a large amount of logs into stdout, and they're not contained within the dehb namespace, but rather polluting the global namespace, which makes it difficult to read logs coming from any host program.
Is there anyway to turn off this behavior and only have it log errors like other programs?
Thanks,
The text was updated successfully, but these errors were encountered: