Improve logging

This commit is contained in:
Neeraj Gupta 2023-02-16 07:56:20 +05:30
parent d20eb65645
commit e82e7634d4
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1

View file

@ -281,7 +281,8 @@ class _CodeWidgetState extends State<CodeWidget> {
try {
return Uri.decodeComponent(value);
} catch (e) {
logger.info("Failed to decode $value");
// note: don't log the value, it might contain sensitive information
logger.severe("Failed to decode", e);
return value;
}
}