From 6f6c912bf0c60603e03eb2306f51f1b019d01500 Mon Sep 17 00:00:00 2001
From: cschen <camillo.schenone@gmail.com>
Date: Tue, 18 Feb 2025 21:17:13 +0100
Subject: [PATCH] i'm dumb, and i was wondering why the LOGGER was not printing
 messages...

---
 plugin/commands/workspace.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/plugin/commands/workspace.py b/plugin/commands/workspace.py
index 7da978f..839435e 100644
--- a/plugin/commands/workspace.py
+++ b/plugin/commands/workspace.py
@@ -63,7 +63,7 @@ class CodempJoinBufferCommand(sublime_plugin.WindowCommand):
                 buff_ctl = ctl_promise.wait()
                 logger.debug("attach successfull!")
             except Exception as e:
-                logging.error(f"error when attaching to buffer '{id}':\n\n {e}")
+                logger.error(f"error when attaching to buffer '{id}':\n\n {e}")
                 sublime.error_message(f"Could not attach to buffer '{buffer_id}'")
                 return
 
@@ -94,11 +94,11 @@ class CodempLeaveBufferCommand(sublime_plugin.WindowCommand):
             vws = buffers.lookupParent(buff)
         except KeyError:
             sublime.error_message(f"You are not attached to the buffer '{buffer_id}'")
-            logging.warning(f"You are not attached to the buffer '{buffer_id}'")
+            logger.warning(f"You are not attached to the buffer '{buffer_id}'")
             return
 
         if not vws.handle.get_buffer(buffer_id):
-            logging.error("The desired buffer is not managed by the workspace.")
+            logger.error("The desired buffer is not managed by the workspace.")
             return
 
         # The call must happen separately, otherwise it causes sublime to crash...
@@ -120,11 +120,11 @@ class CodempCreateBufferCommand(sublime_plugin.WindowCommand):
         try: vws = workspaces.lookupId(workspace_id)
         except KeyError:
             sublime.error_message(f"You are not attached to the workspace '{workspace_id}'")
-            logging.warning(f"You are not attached to the workspace '{workspace_id}'")
+            logger.warning(f"You are not attached to the workspace '{workspace_id}'")
             return
 
         vws.handle.create_buffer(buffer_id)
-        logging.info(
+        logger.info(
             "created buffer '{buffer_id}' in the workspace '{workspace_id}'.\n\
             To interact with it you need to attach to it with Codemp: Attach."
         )
@@ -138,7 +138,7 @@ class CodempDeleteBufferCommand(sublime_plugin.WindowCommand):
         try: vws = workspaces.lookupId(workspace_id)
         except KeyError:
             sublime.error_message(f"You are not attached to the workspace '{workspace_id}'")
-            logging.warning(f"You are not attached to the workspace '{workspace_id}'")
+            logger.warning(f"You are not attached to the workspace '{workspace_id}'")
             return
 
         if buffer_id in buffers: