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

Debug option excess spam #463

Open
nosrednayduj opened this issue Jul 25, 2024 · 1 comment
Open

Debug option excess spam #463

nosrednayduj opened this issue Jul 25, 2024 · 1 comment
Labels
bug Something isn't working new not yet triaged severity-low A bug that makes the usage of the Zowe less convenient but doesn't impact key use cases

Comments

@nosrednayduj
Copy link

Describe the bug
If you specify components.zss.logLevels._zss.httpserver: 5 then you get dozens of lines,
tokenEnd=8
tokenEnd=9
....
tokenEnd=956
tokenEnd=957
(or however long your token is)

Looks to me like this line should be moved OUTSIDE the loop!

zowelog(NULL, LOG_COMP_HTTPSERVER, ZOWE_LOG_DEBUG3, "tokenEnd=%d\n", tokenEnd);

Steps to Reproduce

  1. enable debug components.zss.logLevels._zss.httpserver: 5
  2. hit ZSS with some web requests using token authentication

Expected behavior

Only one line of tokenEnd, however long the token is.

Logs
see snippet above

Describe your environment

  • Zowe version number (Check the Desktop login screen, or manifest.json in the Zowe install folder): 2.15.0
  • Install method (pax, smpe, kubernetes, github clone): either pax or smpe
  • Operating system (z/OS, kubernetes, etc) and OS version: z/OS 3.1
  • Node.js version number (Shown in logs, or via node --version): N/A
  • Java version number (Shown in logs, or via java -version): N/A
  • z/OSMF version: N/A
  • What is the output of log message ZWES1014I:
    ZWES1014I ZIS status - 'Ok' (name='IZPS055 ', cmsRC='0', description='Ok', clientVersion='2')
  • Environment variables in use: N/A

Additional context
Had occasion to enable this debug. If your token is short it's not too bad (e.g. token 40 chars) but some of the tokens are really long if they come from APIML.

@nosrednayduj nosrednayduj added bug Something isn't working new not yet triaged severity-low A bug that makes the usage of the Zowe less convenient but doesn't impact key use cases labels Jul 25, 2024
@nosrednayduj
Copy link
Author

Another place, same problem, end note is inside loop.

zowelog(NULL, LOG_COMP_HTTPSERVER, ZOWE_LOG_DEBUG3, "authEnd=%d\n",authEnd);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working new not yet triaged severity-low A bug that makes the usage of the Zowe less convenient but doesn't impact key use cases
Projects
None yet
Development

No branches or pull requests

1 participant