-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Improved logging, richer stack traces #8640
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
Conversation
allow business hours to calculate when possible
Signed-off-by: Dillon-Brown <[email protected]>
…ield() Don't use array_keys() twice and fix typo in variable name '$panelId'.
strip out entries for email and newsletter does not work for non-english speaking users
expected 'Customer','Prospect' but returns 'Customer\\',\\'Prospect' because $ db->quote is applied twice if strpos($args[$i], ',') !== false, leading to a wrong result Also, $enable = false leads to an error as $db is not defined in that case
Add css for case updates textarea to allow horizontal resize
Codecov Report
@@ Coverage Diff @@
## hotfix-7.10.x #8640 +/- ##
=================================================
- Coverage 10.70% 10.70% -0.01%
=================================================
Files 3229 3229
Lines 240915 240977 +62
=================================================
+ Hits 25795 25800 +5
- Misses 215120 215177 +57 |
808275b
to
dfdb8a8
Compare
Always group by the main group by field to prevent duplicate groups is cases where the main group by field is not grouped in the report
in_array() expects parameter 2 to be array, null given in rebuild Undefined index: SERVER_SOFTWARE in install_utils.php
getModuleField is called twice with the same parameters
Remove and replace legacy Reports with AOR_Reports
language files are fr_FR.js and de_DE.js These files are not found because the file loaded is strtolower($GLOBALS['current_language']) .js That might happen for all other languages where language contains capital letters.
@Dillon-Brown the Travis issue with |
This pull request has been mentioned on SuiteCRM. There might be relevant details there: |
This pull request has been mentioned on SuiteCRM. There might be relevant details there: https://community.suitecrm.com/t/bulk-select-delete-500-error/84634/9 |
This pull request has been mentioned on SuiteCRM. There might be relevant details there: |
Nice improvement @pgorod ! Would be great to supplement this feature with whoops (github) and OpenTelemetry. |
Thanks. There are definitely very interesting packages out there! My package is also done with our community Forums in mind. I wanted a simple way of putting together This final part, BTW, I don't know of any other PHP logging system out there that is able to do it. It probably exists, because it's possible, so others surely must have done it, but I haven't found one yet. I guess people typically focus either on Reflection or on the Exception object, but never bother to combine both like I did. I guess I can say this is a cool PR, and, I think it's really uncool that to this day I still unnecessarily lose time on the Forums doing things the hard way because the PR sits here un-merged for 2.5 years... |
I'd fix the Codacy coding standard issue, then comment with an "at" to 2 code reviewers who are committers. |
I don't understand what the Codacy issue is, exactly... |
Codacy error might be this: |
Ah, ok. I guess since the I will do this when someone with commit rights signals that they are ready to work on merging the PR. Thanks. |
I just added a couple of very minor tweaks. And I'd need to add this to the documentation also:
|
This pull request has been mentioned on SuiteCRM. There might be relevant details there: https://community.suitecrm.com/t/var-dump-in-suitecrm-7/88650/4 |
This pull request has been mentioned on SuiteCRM. There might be relevant details there: |
This pull request has been mentioned on SuiteCRM. There might be relevant details there: https://community.suitecrm.com/t/suitecrm-8-4-beta-release/89872/4 |
This pull request has been mentioned on SuiteCRM. There might be relevant details there: https://community.suitecrm.com/t/actually-using-v8-4-now/90524/9 |
This pull request has been mentioned on SuiteCRM. There might be relevant details there: https://community.suitecrm.com/t/unable-to-login-after-8-4-2-upgrade/90970/14 |
This pull request has been mentioned on SuiteCRM. There might be relevant details there: |
@pgorod With VS Code and the GitLens extension, it's a few clicks to change this PR's target branch to |
I think I can handle the rebase, I use PhpStorm which has very nice interactive git tools. The only problem is that my v7 local git repo is a bit messed up and tangled right now, and I don't have much time to go fix it. Any way, I think this is still my best strategy:
Because if I fix it now, and then years pass, I will have to fix it again, and that is just pointless work if there is no interest in merging. |
There's about 20 commits made by others, showing up in this PR now! |
Yesterday I edited the PR and changed the destination branch to be What I really would need to is to start my branch from my synced This would also imply that I re-do the PR, and we would lose these comments and discussion here, which is a pity. It's not too much work, it's about 30m of untangling git, I do it all the time. It's just that it's not a good time for me to invest that effort. I promise to do it as soon as someone from SalesAgility gives me the sign that there is interest in merging, though. |
If you'd rather not untangle your local messed up fork and |
@chris001 your comment reminded me I had done this once: I am closing this PR in favor of the updated version: #10342 @johnM2401 or @serhiisamko091184 maybe you want to do some house keeping and move these labels over to the new one. |
Description, Motivation and Context
Adds some
config_override.php
options to get more information in the logs, specifically:Documentation preview
https://pedro--suitedocs.netlify.app/developer/logging/#_advanced_logging_configuration
How To Test This
Please read the documentation linked above, there are many options.
An important part of the testing is confirming that nothing changes until we start putting options in
config_override.php
. This will make me more confident about putting the code out there :-)For a simple run, you can test this by adding entries in your
config_override.php
such as these (all explained in the Docs page):Answers to some valid concerns
This is backwards compatible because it does not assume any config values to be there, always uses sensible defaults, and respects the previous meaning of
$sugar_config['show_log_trace']
.This code is complex, and some bug can have slipped by, but it only runs in the cases where you select log traces, so it's easy to turn off, and shouldn't affect production systems.
Some of this code impacts performance (lots of string operations, more file activity) but it's always opt-in: the impact only occurs when you configure it to happen.
This is accompanied with a warning in Documentation: using log traces with argument values might leave sensitive information in the system logs. Use it only temporarily for troubleshooting purposes; obfuscate the information before posting it online; double-check that your logs are only accessible to admins; delete the logs when finished troubleshooting.
Types of changes
Final checklist