Skip to content

Commit

Permalink
Uncaught logging module thing
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonPacewic committed Jul 24, 2024
1 parent 7b03ede commit ebdcbd3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions exporter/SynthesisFusionAddin/src/UI/Events.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import logging.handlers
from typing import Sequence, Tuple

from ..general_imports import *
from ..Logging import getLogger

""" # This file is Special
It links all function names to command requests that palletes can make automatically
If you create a function you can automatically call it from a javascript request or the palette js code.
"""

logger = getLogger()


def updateDocument(*argv: Sequence[str]):
pass
Expand Down Expand Up @@ -52,9 +54,7 @@ def openDocument(json_data: str) -> str:
data = json.loads(json_data)
data = data["arguments"]
gm.ui.messageBox(f"Attempting to open and focus on a given document: {data}\n TODO: Implement")
logging.getLogger(f"{INTERNAL_ID}.Events.openDocument").info(
f"Attempting to open and focus on a given document: {data}\n TODO: Implement"
)
logger.info(f"Attempting to open and focus on a given document: {data}\n TODO: Implement")
return ""


Expand Down

0 comments on commit ebdcbd3

Please sign in to comment.