Commit f6b5329
Added a print_func_args parameter to control whether function arguments are included in log lines (#198)
Changes Made:
1. Added `print_func_args` parameter to TimeoutSampler.__init__():
• Default: True (backward compatible)
• Controls whether function arguments and kwargs are included in log
messages
2. Updated `_func_log` property:
• Includes Args: and Kwargs: only when print_func_args=True
• When False, logs only the function name and module
3. Updated `retry` decorator:
• Added print_func_args parameter
• Passes it through to TimeoutSampler
Signed-off-by: Rabin Yasharzadehe <rabin@rabin.io>
Co-authored-by: Meni Yakove <441263+myakove@users.noreply.github.com>1 parent 4fd8a2d commit f6b5329
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
| |||
90 | 91 | | |
91 | 92 | | |
92 | 93 | | |
| 94 | + | |
93 | 95 | | |
94 | 96 | | |
95 | 97 | | |
| |||
100 | 102 | | |
101 | 103 | | |
102 | 104 | | |
| 105 | + | |
103 | 106 | | |
104 | 107 | | |
105 | 108 | | |
| |||
122 | 125 | | |
123 | 126 | | |
124 | 127 | | |
125 | | - | |
126 | | - | |
| 128 | + | |
| 129 | + | |
127 | 130 | | |
128 | 131 | | |
129 | 132 | | |
| |||
259 | 262 | | |
260 | 263 | | |
261 | 264 | | |
| 265 | + | |
262 | 266 | | |
263 | 267 | | |
264 | 268 | | |
| |||
280 | 284 | | |
281 | 285 | | |
282 | 286 | | |
| 287 | + | |
283 | 288 | | |
284 | 289 | | |
285 | 290 | | |
| |||
0 commit comments