Config.get_user_config() debug logs never shown
I was trying to discover where packit actually loads my user config from and realized that the debug messages in [Config.get_user_config()](https://github.com/packit-service/packit/blob/master/packit/config.py#L109) are never shown even when running `packit -d`.
The reason is probably that the [logging level is set](https://github.com/packit-service/packit/blob/master/packit/cli/packit_base.py#L65) after the function being already called.
diff --git a/packit/cli/packit_base.py b/packit/cli/packit_base.py
index 87775b89..14f6e361 100644
--- a/packit/cli/packit_base.py
+++ b/packit/cli/packit_base.py
@@ -55,8 +55,9 @@ logger = logging.getLogger("packit")
 @click.pass_context
 def packit_base(ctx, debug, fas_user, keytab, dry_run):
     """Integrate upstream open source projects into Fedora operating system."""
-    packit_version = get_distribution("packitos").version
-    logger.info(f"Packit {packit_version} is being used.")
+    if debug:
+        # to be able to logger.debug() also in get_user_config()
+        set_logging(level=logging.DEBUG)
 
     c = Config.get_user_config()
     c.debug = debug or c.debug
@@ -64,13 +65,15 @@ def packit_base(ctx, debug, fas_user, keytab, dry_run):
     c.fas_user = fas_user or c.fas_user
     c.keytab_path = keytab or c.keytab_path
     ctx.obj = c
+
     if ctx.obj.debug:
         set_logging(level=logging.DEBUG)
         set_logging(logger_name="sandcastle", level=logging.DEBUG)
-        logger.debug("logging set to DEBUG")
     else:
         set_logging(level=logging.INFO)
-        logger.debug("logging set to INFO")
+
+    packit_version = get_distribution("packitos").version
+    logger.info(f"Packit {packit_version} is being used.")
 
 
 packit_base.add_command(update)
diff --git a/packit/utils.py b/packit/utils.py
index 76a15c35..30e89b12 100644
--- a/packit/utils.py
+++ b/packit/utils.py
@@ -144,6 +144,7 @@ def set_logging(
     if level != logging.NOTSET:
         logger = logging.getLogger(logger_name)
         logger.setLevel(level)
+        logger.debug(f"logging set to {logging.getLevelName(level)}")
 
         # do not readd handlers if they are already present
         if not [x for x in logger.handlers if isinstance(x, handler_class)]:
['packit/cli/packit_base.py', 'packit/utils.py']