question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improve verbosity of logs

See original GitHub issue

This is a Feature Proposal

Description

I found that existing logs that output with -v option, doesn’t give good overview of internal process.

To have better overview of that, I looked into serverless internals and added for my purpose logs that expose

  • Commands that are about to be pursued with their hooks filled and unfilled with actions
  • Hook start and end points with own duration it took
  • All AWS requests with parameters, so I can see exactly how SLS works with AWS SDK

Here’s an example output:

screen shot 2017-08-03 at 11 45 47

screen shot 2017-08-03 at 11 47 15

I think it’ll be nice to have it in Serverless natively (at least I think there’s no way to introduce it via plugin), so they show either in verbose mode, or with SERVERLESS_DEBUG=true, or with some kind of namespace debugging (as can be achieved with debug).

I’ll be happy to propose a PR, with that, let me know what you think

Additional Data

  • Serverless Framework Version you’re using: v1.19.0
  • Operating System: macOS v10.12.6

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
HyperBraincommented, Aug 4, 2017

@medikoo I think so. AwsProvider#request is also a central interface method, that is used by core and 3rd party plugins. A change there would break everything.

Additionally to PluginManager#invoke I would also patch PluginManager#spawn and show a different message because spawn is used to invoke internal plugin lifecycles from plugins. It allows access to entrypoints which are not accessible from the CLI. It would be enough to show Spawned 'XXXXXX' in that case.

@horike37 @medikoo I think the core integration solution will introduce too much technical debt and complexity (we’re already talking about 2 env vars here).

1reaction
pmuenscommented, Aug 8, 2017

Thanks for creating @medikoo and thanks for commenting @horike37 and @HyperBrain 👍

I agree. Having this as an external would be super nice here (something like an extra debug plugin).

If we mostly agree that it should be in external plugin, please close, and I will post link to plugin here once it’s ready.

I’ll close this one, but please comment here again if you have any questions or need help. Furthermore feel free to comment once the plugin is done!

Thanks again for opening and kicking off the discussion @medikoo 👍

This issue might be related to https://github.com/serverless/serverless/pull/2821.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To: How to increase debugging verbosity of profile status ...
Locate the status log which corresponds to the profile and save a copy of the log for review with a Webtrends Technical Support...
Read more >
Increase Build Log Verbosity to Get More Details About a ...
This can be fixed by increasing build verbosity from within Visual Studio Options. We recommend switching it to normal; this displays errors, ...
Read more >
Increasing Build Log Verbosity for Visual Studio
Start Visual Studio. Click on "Tools"->"Options...". The following dialog should appear: Visual Studio's option dialog; Select the item "Project ...
Read more >
Adjusting log verbosity
Adjust the verbosity programmatically. Log verbosity can also be adjusted by setting a configuration profile on the MobileFirst Operations Console, which must ...
Read more >
Configuring the verbosity for restjavad logs on the BIG-IP ...
Important: Increasing restjavad logging verbosity results in higher disk usage. F5 recommends that you reset the restjavad logging configuration ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found