Skip to content

Logging fix - D1512#618

Open
droberts-ctrlo wants to merge 4 commits into
ctrlo:devfrom
droberts-ctrlo:logging-fix
Open

Logging fix - D1512#618
droberts-ctrlo wants to merge 4 commits into
ctrlo:devfrom
droberts-ctrlo:logging-fix

Conversation

@droberts-ctrlo
Copy link
Copy Markdown
Contributor

fix error in logging.js where the message variable is re-declared in the else block of the logging code, causing the code to error when calling outside of a debug environment rather than undergoing the expected behaviour.

NB Unit test was removed due to adding excess complexity to the code - will re-evaluate and look at possible fix

There was an error in logging.js where the variable 'message' was being re-declared inside the else block,
which caused issues when trying to upload the log message.
This commit fixes that by using a different variable name for the formatted message before uploading it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant