These changes are made in case source is not guranteed to remain the same
Due to how JS should operate, this shouldn't be an issue but this just ensures that
- Logs out to a file w/ relevant meta data
- Provides better readability for end user
This should help provide better troubleshooting for both
development and end users.
This also fixes any previous catches that were attempting to print stack traces,
causing the [object Object] message to appear.
Co-authored-by: Christopher Gjelten <[email protected]>