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

Nebula logger - Error Notification #695

Open
itague opened this issue Jun 4, 2024 · 6 comments
Open

Nebula logger - Error Notification #695

itague opened this issue Jun 4, 2024 · 6 comments
Assignees
Labels
Layer: Logger Engine Items related to the core logging engine Type: Bug Something isn't working

Comments

@itague
Copy link

itague commented Jun 4, 2024

Package Edition of Nebula Logger

Unlocked Package

Package Version of Nebula Logger

v4.13.11

New Bug Summary

Hi, I don't know if it's a bug...

I'm receiveng a lot of emails, all with subject Nebula Logger - Error Notification - company (org id) and following message body:

Logger failed to save 1 LogEntryEvent__e records for _**username**_ (Schema.User ID: **_xxxxxxxxxxxxxxxxxxxxxxx_**)

Errors:

- StatusCode: STRING_TOO_LONG, Message: Value too long for field, Field(s): [Message__c]

How to understand where above errors were raised?

@itague itague added the Type: Bug Something isn't working label Jun 4, 2024
@jongpie
Copy link
Owner

jongpie commented Jun 5, 2024

Hi @itague - I think this is a bug, but I have not been able to reproduce the issue yet (see my comment here). Are you still receiving error emails about this?

@itague
Copy link
Author

itague commented Jun 5, 2024

Unfortunately I'm still receiveng too much emails like above.
In our production Org, there is a batch job that call an external web service each 10 minutes and almost all logger.log calls send an email with this error.

@jongpie
Copy link
Owner

jongpie commented Jun 5, 2024

@itague can you try updating your records in LoggerSettings__c to set IsDataMaskingEnabled__c to false? My theory is that data masking is part of the problem, so if you can change that value & the error emails stop, then I think that will validate my theory.

@jongpie jongpie added the Layer: Logger Engine Items related to the core logging engine label Jun 5, 2024
@jongpie jongpie self-assigned this Jun 5, 2024
@itague
Copy link
Author

itague commented Jun 5, 2024

I'm afraid but IsDataMaskingEnabled__c is already set to false.

@jongpie
Copy link
Owner

jongpie commented Jun 5, 2024

@itague thanks for checking the value of IsDataMaskingEnabled__c - since it's already false, then something else must be causing the problem. I'm reviewing the code & so far, nothing else seems to explain the issue, but I'll continue looking.

In your batch job, which logging methods are you using? Are you using something like Logger.debug('some string') to log? Or are you using any other methods/features/approaches for logging?

@itague
Copy link
Author

itague commented Jul 1, 2024

Hi, I'm using log.error('string', ex) method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Layer: Logger Engine Items related to the core logging engine Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants