-
Notifications
You must be signed in to change notification settings - Fork 192
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
Empty profile list when upgrading from v1.6.5 to develop
#5116
Comments
Hmm, that's weird. So the config file is there just fine, but |
Thanks for the quick reply! I did run
It was due to the fact that printing is now handled through the loggers. For some reason, the config of the default profile (other than the first profile I showed above) had log levels explicitly defined
In 1.6.5, printing of the verdi cli was not affected by these levels. It seems to me that this is an effect we may have overlooked and might want to change? |
In my draft for the verbosity control, I had a One quick fix would be to reintroduce the |
Ah yeah of course, you didn't see anything because your loglevel was set to Then as to why we made the verbosity setting all of the logging: to me it is logical that the |
shouldn't the log level set at the CLI level, override anything set at the config level though? |
Yes, but only if you explicitly define a verbosity level through the option. I don't think the options default is applied by default. We could consider doing that, that |
Thanks for your thoughts guys!
I don't remember, sorry.
True.
I don't agree. Having a separate logger for the cli would also allow us to print a warning if someone sets the level to
I agree, this is not going to affect many people.
I would be in favor of this behavior. Correct me if I'm wrong, but in my mind the use cases for changing logging verbosity permanently (via a configuration) are typically cases where you want to debug workchains etc. Changing cli output verbosity permanently is (I guess) a less common use case (difficult to say for sure since it was not possible until now). If we want to support it, I think we need to offer the option to configure it separately from the AiiDA logger, but I would also be ok with the above solution where one cannot change it permanently, only on demand via the P.S. As a final thought, allowing people to change cli verbosity permanently might make it a tiny bit more difficult for us to help people with issues since it can result in unexpected output of commands due to this setting. |
Describe the bug
This is the output of
verdi profile list
on my machine for aiida-core v1.6.5When I update to
develop
, I get thisNo error message, no warning, just an empty list.
In case it is relevant, I am using the
AIIDA_PATH
variable to specify the location of the AiiDA folder.This is an excerpt from the config file
Expected behavior
If the config file (or repo, ...) need to be migrated I would expect a warning and instructions on what to do.
Your environment
any thoughts @sphuber ?
P.S. When running a command that needs the db, I get
Is it possible that some changes in
develop
are causing AiiDA to need access to the database just in order to do averdi profile list
?The text was updated successfully, but these errors were encountered: