-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
Fix: remove sensitive logs #116
Conversation
$em->flush(); | ||
|
||
try { | ||
$em->flush(); | ||
} catch (\Exception $e) { | ||
error_log('IMAP Error (flush): '.$e->getMessage()); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Catching the exception will allow to continue (as the auth succeeded) and not log the trace, if any
$em->flush(); | ||
|
||
try { | ||
$em->flush(); | ||
} catch (\Exception $e) { | ||
error_log('LDAP Error (flush): '.$e->getMessage()); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Catching the exception will allow to continue (as the auth succeeded) and not log the trace, if any
|
||
# Logging path | ||
# By default, it will log in the standard Symfony directory: var/log/prod.log (for production) | ||
# You can use /dev/null here if you want to discard logs entirely | ||
LOG_FILE_PATH="%kernel.logs_dir%/%kernel.environment%.log" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here for the env var
4f303a4
to
3d2ced0
Compare
3d2ced0
to
db1ef33
Compare
This will filter out passwords from logs, and filter out sensitive arguments from a subset of functions too for safety