-
Notifications
You must be signed in to change notification settings - Fork 216
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
getAvailableCoordianteReferenceSystems() log info message on success which spam console #7656
Comments
For context, starting up OpenSite+ I get
I don't know if this function is supposed to take 2-3 seconds - could it be that all the 36K jumps from native to js to call |
@iTwin/itwinjs-core are there general guidelines for logging (i.e. what type of data should be logged for each log level)? I feel like this is likely to continue if left up to developer preference |
General issue for this function's performance #7643 |
I'll alter the log level, but I cannot yet minimally replicate this time discrepancy. |
Are you testing in Karolis' app? Maybe it or Mango has customized the logger. |
Have not. I'll give it a go. |
In app, I've reproduced a similar delay to Karolis when flipping on info level logging: w/o logging: 1.704s |
@ben-polinsky If this is app-specific, you might want to check if there are custom log functions being passed into |
I'd definitely look into logging setup. @johnnyd710 have you tracked any performance issues w/r/t winston or other parts of your integration? |
I just did a quick analysis of OpenSite+. With verbose logging, it takes a very long time because we are writing all those thousands of logging calls to the console and to a file. I'd hope Winston was smart enough to group/batch and write them all at once instead of one-at-a-time but it doesn't seem so. Without verbose logging, it spends 2.15 seconds inside this function. I can't see inside the native function from chrome developer tools. I attached the trace without versbose logging and with. |
Describe the bug
GeoCoord logger spam info message
Successfully loaded GCS file ...
whengetAvailableCoordianteReferenceSystems()
is called.If this message is needed it should be
Trace
orDebug
level and not info.To Reproduce
Steps to reproduce the behavior:
getAvailableCoordianteReferenceSystems()
hundreds of times. Change log level to trace or debug for this log errorExpected behavior
Show not spam info log messages on success for a function that get called hundreds of time.
Screenshots
![Image](https://private-user-images.githubusercontent.com/29756942/410110806-a3acf2bf-99e8-47c0-af42-5cabc532141a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyODI4MTEsIm5iZiI6MTczOTI4MjUxMSwicGF0aCI6Ii8yOTc1Njk0Mi80MTAxMTA4MDYtYTNhY2YyYmYtOTllOC00N2MwLWFmNDItNWNhYmM1MzIxNDFhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDE0MDE1MVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA1YTQxMzQyY2NjMDE4YTMxMmYzZGQ5OWZmMzlmYzVlMzU5MDAwZjk1MTgzYzk0OTQ1NjA4MjdjYzUzMzIxNjYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.W4-aE3RRs34zZbZ0O2pT9qaTcCS_1pp4Aa4oNdfq4-I)
Desktop (please complete the applicable information):
Reported by @karolis-zukauskas opensiteplus
The text was updated successfully, but these errors were encountered: