     (message "filename does not exist for buffer %s" (floo-get-item req 'id)))))
 
 (defun floobits-switch (text)
-  (message "%s" text)
+  (floobits-debug-message "%s" text)
   (let* ((json-key-type 'string)
     (req (json-read-from-string text))
     (event (floo-get-item req "name"))


(setq max-specpdl-size 1500)

(setq floobits-agent-host "localhost")
(setq floobits-agent-port 4567)
(setq floobits-python-path (concat floobits-plugin-dir "floobits.py"))

    (delete-process floobits-python-agent))))

(floobits-initialize)

(defun floobits-debug-message (text &rest rest)
  (if (eq floobits-debug t)
    (apply 'message text rest)))

(defun floobits-add-hooks ()
  (add-hook 'after-change-functions 'floobits-after-change nil nil)
