Skip to content

Commit

Permalink
style: log missing attrs as INFO.
Browse files Browse the repository at this point in the history
This was an unanimous decision that was made by both the core and external development teams. For reasons involving how Discord staff view matters of silently releasing new features to the library, we've made the decision to no longer treat these as superficial problems that break the runtime of a client running on the library. Since our library continues to operate normally with a missing attribute or data model, there is no need to log as such.
  • Loading branch information
i0bs committed Mar 23, 2022
1 parent c1564f7 commit 196c365
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interactions/api/models/misc.py
Expand Up @@ -41,7 +41,7 @@ def __init__(self, **kwargs):
# else case if the mixin is used outside of this library and/or SDK.
setattr(self, key, kwargs[key])
else:
log.warning(
log.info(
f"Attribute {key} is missing from the {self.__class__.__name__} data model, skipping."
)
# work on message printout? Effective, but I think it should be a little bit more friendly
Expand Down

0 comments on commit 196c365

Please sign in to comment.