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

Qual: Fix WARNING messages in syslog - add getCallerInfoString() #31351

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

mdeweerd
Copy link
Contributor

@mdeweerd mdeweerd commented Oct 10, 2024

Qual: Fix WARNING messages in syslog - add getCallerInfoString()

The WARNIGNs were generated ghrough projects/element.php, added a helper function to help locate the calling function and fixed the causes for the dynamic notices.

# Qual: Fix dolIsTms() call with empty string

The dolibarr log indicated that dolIsTms() was called with the
empty string:

- Add code to log the caller in the log;
- Fix the dolIsTms() calls by updating project/element.php
# Fix comparison of ''<0

As ''<0 is true, non-existing errors were added resulting in
Try to add a message in stack, but value to add is empty message
in the log.
@mdeweerd mdeweerd changed the title Qual: Fix WARNIGN messages in syslog - add getCallerInfoString() Qual: Fix WARNING messages in syslog - add getCallerInfoString() Oct 10, 2024
@mdeweerd mdeweerd marked this pull request as ready for review October 10, 2024 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant