debugbundle-python 1.3.0__py3-none-any.whl → 1.4.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -264,7 +264,7 @@ def sdk_version() -> str:
264
264
  try:
265
265
  return metadata.version("debugbundle-python")
266
266
  except metadata.PackageNotFoundError:
267
- return "1.3.0"
267
+ return "1.4.1"
268
268
 
269
269
 
270
270
  def sdk_config_endpoint(events_endpoint: str) -> str:
@@ -3,6 +3,8 @@ from __future__ import annotations
3
3
  from collections.abc import Callable
4
4
  from typing import Any, Protocol
5
5
 
6
+ from .structlog_integration import StructlogLoggerProxy as _StructlogLoggerProxy
7
+
6
8
 
7
9
  class LogCaptureApi(Protocol):
8
10
  def capture_log(
@@ -44,14 +46,18 @@ def _attach_structlog(
44
46
  if getattr(original_get_logger, "__debugbundle_structlog_wrapper__", False):
45
47
  return None
46
48
 
49
+ active = [True]
50
+
47
51
  def get_logger(*args: Any, **kwargs: Any) -> Any:
48
- return _StructlogLoggerProxy(original_get_logger(*args, **kwargs), sdk)
52
+ return _StructlogLoggerProxy(original_get_logger(*args, **kwargs), sdk, active)
49
53
 
50
54
  setattr(get_logger, "__debugbundle_structlog_wrapper__", True)
51
55
  structlog.get_logger = get_logger
52
56
 
53
57
  def restore() -> None:
54
- structlog.get_logger = original_get_logger
58
+ active[0] = False
59
+ if structlog.get_logger is get_logger:
60
+ structlog.get_logger = original_get_logger
55
61
 
56
62
  return restore
57
63
  except Exception as error:
@@ -100,40 +106,6 @@ def _normalize_level(level: str) -> str:
100
106
  return normalized
101
107
 
102
108
 
103
- class _StructlogLoggerProxy:
104
- def __init__(self, logger: Any, sdk: LogCaptureApi) -> None:
105
- self._logger = logger
106
- self._sdk = sdk
107
-
108
- def bind(self, *args: Any, **kwargs: Any) -> _StructlogLoggerProxy:
109
- return _StructlogLoggerProxy(self._logger.bind(*args, **kwargs), self._sdk)
110
-
111
- def new(self, *args: Any, **kwargs: Any) -> _StructlogLoggerProxy:
112
- return _StructlogLoggerProxy(self._logger.new(*args, **kwargs), self._sdk)
113
-
114
- def __getattr__(self, name: str) -> Any:
115
- attribute = getattr(self._logger, name)
116
- if name not in {
117
- "debug",
118
- "info",
119
- "warning",
120
- "warn",
121
- "error",
122
- "critical",
123
- "exception",
124
- } or not callable(attribute):
125
- return attribute
126
-
127
- def wrapped(event: Any = None, *args: Any, **kwargs: Any) -> Any:
128
- context = dict(kwargs)
129
- for index, value in enumerate(args):
130
- context[f"arg_{index}"] = value
131
- self._sdk.capture_log(str(event or ""), level=_normalize_level(name), context=context or None)
132
- return attribute(event, *args, **kwargs)
133
-
134
- return wrapped
135
-
136
-
137
109
  def _emit_diagnostic(
138
110
  on_diagnostic: Callable[[dict[str, object]], None] | None,
139
111
  error: Exception,
@@ -151,4 +123,4 @@ def _emit_diagnostic(
151
123
  }
152
124
  },
153
125
  }
154
- )
126
+ )
@@ -0,0 +1,136 @@
1
+ from __future__ import annotations
2
+
3
+ import copy
4
+ import inspect
5
+ import logging
6
+ from contextvars import ContextVar
7
+ from typing import Any
8
+
9
+ _CAPTURING: ContextVar[bool] = ContextVar("debugbundle_structlog_capture", default=False)
10
+ _LOG_METHODS = {"debug", "info", "warning", "warn", "error", "critical", "fatal", "exception", "log"}
11
+ _BIND_METHODS = {"bind", "new", "unbind", "try_unbind"}
12
+
13
+
14
+ def _capture(sdk: Any, active: list[bool], name: str, record: dict[str, Any]) -> None:
15
+ if not active[0] or _CAPTURING.get():
16
+ return
17
+ token = _CAPTURING.set(True)
18
+ try:
19
+ context = dict(record)
20
+ message = str(context.pop("event", ""))
21
+ level = {"warn": "warning", "exception": "error", "fatal": "critical"}.get(name, name)
22
+ sdk.capture_log(message, level=level, context=context or None)
23
+ except Exception:
24
+ # A logger adapter must not throw into the application's logging path.
25
+ pass
26
+ finally:
27
+ _CAPTURING.reset(token)
28
+
29
+
30
+ class _SinkProxy:
31
+ def __init__(self, sink: Any, sdk: Any, active: list[bool], record: dict[str, Any]) -> None:
32
+ self._sink = sink
33
+ self._sdk = sdk
34
+ self._active = active
35
+ self._record = record
36
+
37
+ def __getattr__(self, name: str) -> Any:
38
+ method = getattr(self._sink, name)
39
+ if name not in _LOG_METHODS or not callable(method):
40
+ return method
41
+
42
+ def emit(*args: Any, **kwargs: Any) -> Any:
43
+ result = method(*args, **kwargs)
44
+ # stdlib records go through the existing SDK logging.Handler, after
45
+ # Logger.disabled, logging.disable(), levels and logger filters.
46
+ if not isinstance(self._sink, (logging.Logger, logging.LoggerAdapter)):
47
+ _capture(self._sdk, self._active, name, self._record)
48
+ return result
49
+
50
+ return emit
51
+
52
+
53
+ class StructlogLoggerProxy:
54
+ def __init__(self, logger: Any, sdk: Any, active: list[bool] | None = None) -> None:
55
+ self._logger = logger
56
+ self._sdk = sdk
57
+ self._active = active if active is not None else [True]
58
+
59
+ def __getattr__(self, name: str) -> Any:
60
+ attribute = getattr(self._logger, name)
61
+ if not callable(attribute):
62
+ return attribute
63
+ if name in _BIND_METHODS:
64
+ def bind(*args: Any, **kwargs: Any) -> StructlogLoggerProxy:
65
+ return StructlogLoggerProxy(attribute(*args, **kwargs), self._sdk, self._active)
66
+ return bind
67
+ method_name = name[1:] if name.startswith("a") else name
68
+ if method_name not in _LOG_METHODS:
69
+ return attribute
70
+
71
+ def prepare(args: tuple[Any, ...], kwargs: dict[str, Any]) -> Any:
72
+ if not self._active[0] or _CAPTURING.get():
73
+ return attribute
74
+ try:
75
+ bound = self._logger.bind() if hasattr(self._logger, "bind") else self._logger
76
+ if not hasattr(bound, "_processors") or not hasattr(bound, "_logger"):
77
+ return self._legacy_method(attribute, method_name)
78
+ # Keep the application's bound logger and processor list intact.
79
+ # The per-call clone also isolates concurrent/async log records.
80
+ clone = copy.copy(bound)
81
+ self._ensure_stdlib_handler(bound._logger)
82
+ record = dict(bound._context)
83
+ record.update(kwargs)
84
+ if args:
85
+ record["event"] = args[1] if method_name == "log" and len(args) > 1 else args[0]
86
+ processors = list(bound._processors)
87
+ if processors:
88
+ last = processors[-1]
89
+
90
+ def observe(logger: Any, level: str, event: Any) -> Any:
91
+ result = last(logger, level, event)
92
+ snapshot = result if isinstance(result, dict) else event
93
+ if isinstance(snapshot, dict):
94
+ record.clear()
95
+ record.update(snapshot)
96
+ return result
97
+
98
+ processors[-1] = observe
99
+ clone._processors = processors
100
+ clone._logger = _SinkProxy(bound._logger, self._sdk, self._active, record)
101
+ return getattr(clone, name)
102
+ except Exception:
103
+ # Preparation can fail for a custom logger; call it exactly once.
104
+ return attribute
105
+
106
+ if inspect.iscoroutinefunction(attribute):
107
+ async def async_log(*args: Any, **kwargs: Any) -> Any:
108
+ return await prepare(args, kwargs)(*args, **kwargs)
109
+ return async_log
110
+
111
+ def log(*args: Any, **kwargs: Any) -> Any:
112
+ return prepare(args, kwargs)(*args, **kwargs)
113
+ return log
114
+
115
+ def _ensure_stdlib_handler(self, sink: Any) -> None:
116
+ logger = sink.logger if isinstance(sink, logging.LoggerAdapter) else sink
117
+ if not isinstance(logger, logging.Logger):
118
+ return
119
+ current: logging.Logger | None = logger
120
+ while current is not None:
121
+ if any(getattr(handler, "_sdk", None) is self._sdk for handler in current.handlers):
122
+ return
123
+ if not current.propagate:
124
+ break
125
+ current = current.parent
126
+ attach = getattr(self._sdk, "capture_logging", None)
127
+ if callable(attach):
128
+ attach(logger=logger)
129
+
130
+ def _legacy_method(self, attribute: Any, name: str) -> Any:
131
+ def log(event: Any = None, *args: Any, **kwargs: Any) -> Any:
132
+ result = attribute(event, *args, **kwargs)
133
+ record = {**kwargs, **{f"arg_{i}": value for i, value in enumerate(args)}, "event": event or ""}
134
+ _capture(self._sdk, self._active, name, record)
135
+ return result
136
+ return log
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: debugbundle-python
3
- Version: 1.3.0
3
+ Version: 1.4.1
4
4
  Summary: DebugBundle SDK for Python
5
5
  Author: DebugBundle
6
- License-Expression: AGPL-3.0-only
6
+ License-Expression: Apache-2.0
7
7
  Project-URL: Homepage, https://debugbundle.com/docs/sdks/python
8
8
  Project-URL: Repository, https://github.com/debugbundle/debugbundle-python
9
9
  Project-URL: Issues, https://github.com/debugbundle/debugbundle-python/issues
@@ -43,12 +43,16 @@ Python SDK for DebugBundle.
43
43
 
44
44
  ![PyPI](https://img.shields.io/pypi/v/debugbundle-python?label=pypi)
45
45
  ![CI](https://img.shields.io/github/actions/workflow/status/debugbundle/debugbundle-python/ci.yml?branch=main&label=ci)
46
- ![License](https://img.shields.io/badge/license-AGPL--3.0--only-blue)
46
+ ![License](https://img.shields.io/badge/license-Apache--2.0-blue)
47
47
 
48
48
  Use this package to capture Python backend exceptions, request metadata, structured logs, runtime context, and probe data. It supports vanilla Python plus Django, Flask, FastAPI, Python logging, structlog, loguru, and browser relay helpers.
49
49
 
50
50
  Requires Python 3.10 or newer.
51
51
 
52
+ ## Automatic capture and application filtering
53
+
54
+ `capture_logging()` attaches the stdlib logging handler and detects installed structlog/loguru integrations. Obtain structlog loggers after attachment. Structlog level filters and `DropEvent` processors run before capture; stdlib-backed structlog loggers also honor logger filters, disabled state and `logging.disable()`. Bound context and async logging are supported. SDK disposal stops capture through cached proxies. DebugBundle has its own minimum capture level; destination-specific filters on other handlers or Loguru sinks do not configure the DebugBundle handler.
55
+
52
56
  ## Installation
53
57
 
54
58
  ```bash
@@ -345,4 +349,4 @@ CI validates Ruff, mypy, pytest, package build, event schema fixtures, and cover
345
349
 
346
350
  ## License
347
351
 
348
- AGPL-3.0-only. See `LICENSE`.
352
+ Apache-2.0. See `LICENSE`.
@@ -3,12 +3,13 @@ debugbundle/acknowledgement.py,sha256=tyI8XLRG9N3-Weo6uiGrAlf_O4tjptVe1x1cG7RjrM
3
3
  debugbundle/before_send.py,sha256=_tmV6ovHUBIxfQPMQ8a0C6r91IAnd4DVs8UcjsKhqX0,7792
4
4
  debugbundle/config.py,sha256=ENRSR5jUI7xYdBqUakWws3GIjBk00GWFmwXVE_iQp2Y,9296
5
5
  debugbundle/core.py,sha256=ox4fNADe2kRic9aUePB_RJmT81vCQ9SFW6PaCSL-YL0,32888
6
- debugbundle/event_support.py,sha256=40WVezmibrVOFI_bBAO4pUpYJSrmfrWMSeedb-buuII,9046
7
- debugbundle/logger_integrations.py,sha256=RuTNaD9RRVmiE-BBkksAXWVEGaMzLrWavVpQdgGZBpE,4564
6
+ debugbundle/event_support.py,sha256=vSiD8HoMPSKnXIlc-S5ZtnGllH9al79nLc04RX-eywY,9046
7
+ debugbundle/logger_integrations.py,sha256=T6LR10_DgDS8C-CUPxtC1kZz3qfX5j0B2YUV7LxDovk,3572
8
8
  debugbundle/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  debugbundle/redaction.py,sha256=QTaPkSsYv54yR1mz8SB6Q4vWjvp7Ddcui4WXaH2RVz8,736
10
10
  debugbundle/relay.py,sha256=p5-tFXsgH8TZfB7Va3C2XFJsi8mYOMnGjr01W_kApME,14366
11
11
  debugbundle/relay_delivery.py,sha256=VL-nIgJR6mYXqKy-EbA0USWeY_iS_uAr1KBzrnwBnnk,4676
12
+ debugbundle/structlog_integration.py,sha256=fIrv5U2TrbYURsEt_Bne-JuW3xLdgpNyM3RyBNp7RyU,5794
12
13
  debugbundle/suppression.py,sha256=XMn0GfF_-WZk2wHWk3KfbO5_u5QhEunues5h3jOInLs,4098
13
14
  debugbundle/transport.py,sha256=V289FwFWL6KV5gyzOsesluEMbpRobm_FHu3x8BpOYKU,2014
14
15
  debugbundle/trigger_token.py,sha256=YUwIWnnxu1klAVaB8Ltgk_PwWW_PPjq9rzmEbWXeFeM,4455
@@ -20,8 +21,8 @@ debugbundle/integrations/flask.py,sha256=cgyHbsAH96gpNPf_5IGJYzp2va28JdDgXROBsF-
20
21
  debugbundle/integrations/relay_django.py,sha256=Wj8BE9D5otU2KmtjgqdKIJ-BvXVcagCKgpLYvnPZ6WE,2281
21
22
  debugbundle/integrations/relay_fastapi.py,sha256=-Zl6bvhYMLii__mP6-UvSdwxS5VKsb9OZvk-yy-3hEw,2227
22
23
  debugbundle/integrations/relay_flask.py,sha256=VFHkDTJy4LkZzL_Ry_Ba-e_gW6UTG4PBwnLcvB_oXuQ,2011
23
- debugbundle_python-1.3.0.dist-info/licenses/LICENSE,sha256=AKZZ5DQAHrOKGwt24VoRd-SXJLM9OloxlsX8ZgENdEY,735
24
- debugbundle_python-1.3.0.dist-info/METADATA,sha256=tNoi9S3qguVNM5NPnzsgTOk4fM-PlRJ4eRbIIpKxQhg,13841
25
- debugbundle_python-1.3.0.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
26
- debugbundle_python-1.3.0.dist-info/top_level.txt,sha256=RCB9STTFnl1OKdojxz-xhaks2zkRFs1meZXsKnm18LM,12
27
- debugbundle_python-1.3.0.dist-info/RECORD,,
24
+ debugbundle_python-1.4.1.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
25
+ debugbundle_python-1.4.1.dist-info/METADATA,sha256=565SQt1hHG6Unoj5Cj7Pa60AsMgs097_XnQSg7VnxuI,14452
26
+ debugbundle_python-1.4.1.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
27
+ debugbundle_python-1.4.1.dist-info/top_level.txt,sha256=RCB9STTFnl1OKdojxz-xhaks2zkRFs1meZXsKnm18LM,12
28
+ debugbundle_python-1.4.1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (83.0.0)
2
+ Generator: setuptools (84.0.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -1,17 +0,0 @@
1
- GNU AFFERO GENERAL PUBLIC LICENSE
2
- Version 3, 19 November 2007
3
-
4
- Copyright (C) 2024-present DebugBundle
5
-
6
- This program is free software: you can redistribute it and/or modify
7
- it under the terms of the GNU Affero General Public License as
8
- published by the Free Software Foundation, either version 3 of the
9
- License, or (at your option) any later version.
10
-
11
- This program is distributed in the hope that it will be useful,
12
- but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- GNU Affero General Public License for more details.
15
-
16
- You should have received a copy of the GNU Affero General Public License
17
- along with this program. If not, see <https://www.gnu.org/licenses/>.