`useLogger().logError("single arg")` logs `<empty string>`
andretchen0 opened this issue · comments
andretchen0 commented
Describe the bug
useLogger().logError
will accept 1 or 2 arguments, but if only 1 is provided, it will log the first argument, then <empty string>
to the console.
I expect that <empty string>
not be logged.
Reproduction
https://stackblitz.com/edit/tresjs-basic-ou9xhy?file=src%2Fcomponents%2FTheExperience.vue
Steps to reproduce
See StackBlitz.
System Info
System:
OS: Linux 5.0 undefined
CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
Memory: 0 Bytes / 0 Bytes
Shell: 1.0 - /bin/jsh
Binaries:
Node: 18.18.0 - /usr/local/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 9.4.2 - /usr/local/bin/npm
pnpm: 8.14.0 - /usr/local/bin/pnpm
npmPackages:
@tresjs/cientos: ^3.5.1 => 3.5.1
@tresjs/core: ^3.4.1 => 3.4.1
@tresjs/eslint-config-vue: ^0.2.1 => 0.2.1
vite: ^4.5.0 => 4.5.0
Used Package Manager
pnpm
Code of Conduct
- I agree to follow this project's Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- The provided reproduction is a minimal reproducible example of the bug.