Last active
November 6, 2019 11:26
-
-
Save TeddybearCrisis/32ce1f43e5d13f670140e028483b3fa6 to your computer and use it in GitHub Desktop.
PyCharm Log Regex Pattern
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2019-11-05 19:22:59,120 [DEBUG] s3transfer.tasks: Exception raised. | |
Traceback (most recent call last): | |
File "/usr/local/lib/python3.7/site-packages/s3transfer/tasks.py", line 255, in _main | |
self._submit(transfer_future=transfer_future, **kwargs) | |
File "/usr/local/lib/python3.7/site-packages/s3transfer/download.py", line 345, in _submit | |
**transfer_future.meta.call_args.extra_args | |
File "/usr/local/lib/python3.7/site-packages/botocore/client.py", line 357, in _api_call | |
return self._make_api_call(operation_name, kwargs) | |
File "/usr/local/lib/python3.7/site-packages/botocore/client.py", line 661, in _make_api_call | |
raise error_class(parsed_response, operation_name) | |
botocore.exceptions.ClientError: An error occurred (403) when calling the HeadObject operation: Forbidden | |
2019-11-05 19:22:59,121 [DEBUG] s3transfer.utils: Releasing acquire 0/None | |
2019-11-05 19:22:59,121 [ERROR] socr.util.web.S3: An error occurred (403) when calling the HeadObject operation: Forbidden | |
2019-11-05 19:22:59,121 [INFO] socr.app.controller.SocrApp: Serving SOCR with params (debug: False, output_dir: 'socr_temp/80', external_port: 80) | |
2019-11-05 19:22:59,121 [DEBUG] socr.app.controller.SocrServer: Initializing SOCR Server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Name] | |
Python Logs | |
[Message pattern] | |
^(\d{4}-\d{2}-\d{2}\s[\S]+)\s\[?(\w+)\]?\s(.*) | |
[Message start pattern] | |
^\d{4}-\d{2}-\d{2}\s[\S]+ | |
[Time format] | |
yyyy-MM-dd HH:mm:ss,SSS | |
[Time capture group] | |
1 | |
[Severity capture group] | |
2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment