Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double timestamps in runtime action logging #19

Open
purplecabbage opened this issue Mar 10, 2020 · 1 comment
Open

Double timestamps in runtime action logging #19

purplecabbage opened this issue Mar 10, 2020 · 1 comment
Assignees
Labels
bug Something isn't working documentation Improvements or additions to documentation good first issue Good for newcomers help wanted Extra attention is needed

Comments

@purplecabbage
Copy link
Member

In my runtime action code, I am doing this:

const aioLogger = require('@adobe/aio-lib-core-logging')('@adobe/aio-app-myapps/resolver', { provider: 'debug', level: 'debug' })
...
// and later
aioLogger.debug('resolver got a request')

When I look at the logs, I see this:

2020-03-10T22:35:04.802Z       stdout: 2020-03-10T22:35:04.802Z @adobe/aio-app-myapps/resolver:debug  resolver got a request

With the double time stamp, plus the stream name, plus a verbose debug namespace, there are 100 char before the message.

@meryllblanchet meryllblanchet added bug Something isn't working documentation Improvements or additions to documentation help wanted Extra attention is needed labels Mar 18, 2020
@meryllblanchet meryllblanchet added the good first issue Good for newcomers label Apr 8, 2020
@meryllblanchet meryllblanchet assigned rajarju and unassigned Himavanth Jun 16, 2020
@shazron
Copy link
Member

shazron commented Apr 26, 2024

The debug log provider doesn't add a timestamp, so I'm not sure where the second timestamp shows up (winston does show a timestamp by default). The first timestamp is of course provided by Runtime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants