Commit Graph

138 Commits

Author SHA1 Message Date
Florian Bruhin
12940eb542 Handle QtInfoMsg (Qt 5.5) in qt_message_handler. 2015-05-15 20:15:09 +02:00
Florian Bruhin
39f7850942 Fix lint. 2015-04-13 08:52:58 +02:00
Florian Bruhin
c071bcbec8 Clean up loggers. 2015-04-13 08:49:04 +02:00
Florian Bruhin
4e2ef45cd8 Ignore Qt warning about WOFF/zlib. 2015-04-07 13:00:26 +02:00
Florian Bruhin
e7f5433da3 Enable python warnings earlier and unconditionally. 2015-03-23 07:40:22 +01:00
Florian Bruhin
e8e6d8409b Adjust pylint exceptions. 2015-03-11 20:14:39 +01:00
Florian Bruhin
0827ddec86 utils.log: Simplify stack printing on Qt warnings. 2015-03-06 16:33:22 +01:00
Florian Bruhin
3e5b9a4a4a log.utils: Add Qt warning filter context manager. 2015-03-06 16:32:26 +01:00
Florian Bruhin
9d716d74b4 Fix lint. 2015-02-25 18:01:30 +01:00
Florian Bruhin
caad56c978 Print stacktrace on Qt warnings. 2015-02-24 07:12:25 +01:00
Florian Bruhin
43c5dc3bf6 Refactor saving logic, only save stuff if modified.
Fixes #113.
See #11.
2015-02-01 00:43:07 +01:00
Florian Bruhin
b12b83f98c Hide 2 more Qt warnings. 2015-01-07 06:59:48 +01:00
Florian Bruhin
450d1ab70d Update copyright years 2015-01-03 15:51:31 +01:00
Florian Bruhin
57c8dff396 Handle category being None in Qt message handler.
Fixes #397.
2014-12-22 17:33:35 +01:00
Florian Bruhin
7b1ea3ff40 Typo: s/similiar/similar/g 2014-11-19 22:46:52 +01:00
Florian Bruhin
2fe72d8087 Simplify utils.log.
The overcomplicated parsing with re didn't really give us much benefits, and
lead to exceptions and segfaults[1] (?) already, so it's best to just get rid
of it entirely.

[1] http://paste.the-compiler.org/view/26768694
2014-11-19 22:43:49 +01:00
Florian Bruhin
336bbc370e Ignore 'content-type missing' Qt warning. 2014-11-19 22:38:56 +01:00
Florian Bruhin
b0c8ca9e1a Escape regex correctly. 2014-11-18 07:34:50 +01:00
Florian Bruhin
3622f35865 Hide 'load glyph failed' Qt warning. 2014-11-16 16:25:37 +01:00
Florian Bruhin
404e425a9e Clean up faulthandler import 2014-11-09 22:59:14 +01:00
Florian Bruhin
5f9c56bcdd Fix exception when logging Qt warning without function. 2014-11-09 22:57:39 +01:00
Florian Bruhin
f689c89316 Merge branch 'shlex'
Fixes #122.
Fixes #232.
2014-11-09 18:25:51 +01:00
Florian Bruhin
31ee458e56 Hide _GTK_LOAD_ICONTHEMES Qt error 2014-11-08 20:03:33 +01:00
Florian Bruhin
9a5df13639 Use logging for debug 2014-11-04 20:06:58 +01:00
Florian Bruhin
de41dee0b5 Add ipc logging 2014-10-13 21:38:28 +02:00
Florian Bruhin
d674b90240 Clean up FIXMEs and add github URLs 2014-10-01 22:23:27 +02:00
Florian Bruhin
05ff908c4f Update attributes in docstrings. 2014-09-24 22:25:11 +02:00
Florian Bruhin
62e55499eb Privatize all attributes which aren't needed from the outside. 2014-09-24 22:25:11 +02:00
Florian Bruhin
bc01f3a780 Fix spelling of temporarily 2014-09-22 20:44:07 +02:00
Florian Bruhin
5ba3440369 Add details to colorama workaround. 2014-09-03 22:20:17 +02:00
Florian Bruhin
4caec2becb Document and mark workarounds. 2014-09-02 20:44:58 +02:00
Florian Bruhin
d059c468af Merge branch 'ninja' 2014-08-29 07:33:43 +02:00
Florian Bruhin
f44896cc44 Add a VDEBUG logging level. 2014-08-29 07:33:37 +02:00
Florian Bruhin
1dce50309b First steps at using jinja2 for qute:log. 2014-08-29 06:59:44 +02:00
Florian Bruhin
d625cde28c Clean up imports 2014-08-26 19:10:14 +02:00
Florian Bruhin
45608ee9f8 Add bugs URL to colorama issue 2014-08-26 06:35:58 +02:00
Florian Bruhin
1a24e953c6 Better way to deinit colorama 2014-08-25 22:26:52 +02:00
Florian Bruhin
012482ce10 Fix colorama log issues on Windows when frozen.
With the new version of colorlog, colorama.init() gets called when opening
colorlog, which then lead to sys.stderr not being None anymore (but a wrapped
"None"), which lead to an exception when we checked isatty().

We now just unwrap these again.
2014-08-25 10:52:38 +02:00
Florian Bruhin
bbcf593f38 Fix logfilter 2014-08-25 06:58:41 +02:00
Florian Bruhin
c7bfe784e4 Adjust the rest of the code for rfc6266 -> pypeg2 2014-08-14 13:37:27 +02:00
Florian Bruhin
069371501a Hide QNetworkReplyImplPrivate warning message 2014-08-12 07:00:05 +02:00
Florian Bruhin
b2a227fb50 log: Clean up log formatting. 2014-08-05 23:35:20 +02:00
Florian Bruhin
7818366f0a Fix lint 2014-08-05 23:23:15 +02:00
Florian Bruhin
60d4dafbbb Replace cgi.escape by html.escape.
cgi.escape is deprecated:
https://docs.python.org/3.4/library/cgi.html#cgi.escape
2014-08-05 23:20:26 +02:00
Florian Bruhin
f1a8f91d51 log: Adjust colors so warnings/errors are more visible. 2014-08-05 23:07:53 +02:00
Florian Bruhin
1dd56e512a log: Fix RAMHandler so the data can change while iterating. 2014-08-05 23:07:25 +02:00
Florian Bruhin
d7f9ccf7e5 log: Fix lepl filter with debug logging. 2014-08-05 22:31:30 +02:00
Florian Bruhin
2691e6bb6b Remove unneeded colorama.init().
We don't want colorama to replace stdout/stderr, so we shouldn't call .init()
at all.
2014-08-01 23:47:44 +02:00
Florian Bruhin
09641d96f3 Fix HTML log output 2014-06-25 21:11:03 +02:00
Florian Bruhin
fcc0d8e911 Better workaround for hang-with-warnings bug 2014-06-25 20:18:00 +02:00
Florian Bruhin
c8cc92e8c2 Add basic HTML log 2014-06-25 10:00:27 +02:00
Florian Bruhin
6aff5fd374 Document js/qt loggers 2014-06-23 07:00:21 +02:00
Florian Bruhin
4909f3f0fe Add LeplFilter to RAM, not twice to console.
Fixes exception when sys.stderr is None.
2014-06-20 08:50:37 +02:00
Florian Bruhin
6ce5afccbe Use rfc6266 to handle Content-Disposition in downloads 2014-06-19 21:06:19 +02:00
Florian Bruhin
3435aef78c Add commandline argument for debug log buffer size 2014-06-19 12:11:46 +02:00
Florian Bruhin
1ed70bfef7 Fix utils.log so it works with sys.stderr == None 2014-06-19 10:19:00 +02:00
Florian Bruhin
d65587128f Add vim modelines to all files. 2014-06-19 09:04:37 +02:00
Florian Bruhin
6d4f961a50 Merge branch 'downloads'
Conflicts:
	BUGS
2014-06-13 23:11:44 +02:00
Florian Bruhin
9b7ff910c3 Log stylesheets 2014-06-13 07:38:10 +02:00
Florian Bruhin
583546f067 Print nicer message when Qt xkb plugin is missing 2014-06-10 23:11:17 +02:00
Florian Bruhin
7dd5b1b94e First debugging implementation of downloads 2014-06-10 22:11:17 +02:00
Florian Bruhin
2f1cd43f9c Change lists to tuples for immutable values 2014-06-06 17:21:35 +02:00
Florian Bruhin
03d754dd86 Fix logfilter bugs 2014-06-06 16:51:24 +02:00
Florian Bruhin
9c9492a706 logfilter: Only filter debug messages 2014-06-06 15:48:42 +02:00
Florian Bruhin
3ceeccb133 Clean up logging init 2014-06-06 12:29:33 +02:00
Florian Bruhin
e6893af3d4 Support colorama to get colored logs on windows 2014-06-06 12:13:32 +02:00
Florian Bruhin
5a6eb2bec3 Improve function match regex 2014-06-03 17:24:12 +02:00
Florian Bruhin
282874cc80 Hide all OpenType warnings. 2014-06-03 17:23:51 +02:00
Florian Bruhin
5e6cddecaf Just change level to DEBUG with suppressed Qt messages 2014-06-03 17:18:20 +02:00
Florian Bruhin
eb426cb870 Suppress OpenType warning message 2014-06-03 17:04:22 +02:00
Florian Bruhin
298e757991 Fix qt warning regex 2014-06-03 17:01:42 +02:00
Florian Bruhin
a4c3ce6bdc Fix lint 2014-06-03 14:34:38 +02:00
Florian Bruhin
4d0649a825 Let qt function parsing be more forgiving 2014-06-03 06:54:55 +02:00
Florian Bruhin
2286d1d65a Handle Qt warning category in log handler 2014-06-02 23:16:09 +02:00
Florian Bruhin
6fedc53a4d Suppress libpng warning about color profiles 2014-06-02 23:10:21 +02:00
Florian Bruhin
b415773cc7 Use custom Qt message handler 2014-06-02 22:43:32 +02:00
Florian Bruhin
c5230dc347 Use logging system for python warnings 2014-06-02 22:19:35 +02:00
Florian Bruhin
4538745ffb Implement QWebPage:javaScript* 2014-05-26 20:04:44 +02:00
Florian Bruhin
bb9f301410 Use getattr to get numeric logging level.
It turns out it was a bad idea to use logging._nameToLevel since that
doesn't exist in python 3.3.
2014-05-26 09:00:45 +02:00
Florian Bruhin
7c3c572519 Increase RAMHandler capacity to 500 2014-05-25 20:28:24 +02:00
Florian Bruhin
8fb54d4c55 More beautiful logging format 2014-05-25 20:13:58 +02:00
Florian Bruhin
7200bf5690 Whitespace 2014-05-25 20:08:37 +02:00
Florian Bruhin
b37ca744b2 Disable coloring when requested/on Windows/no tty 2014-05-25 20:08:07 +02:00
Florian Bruhin
e89fc3d940 Add colored logging 2014-05-25 20:00:48 +02:00
Florian Bruhin
f87e7b76f4 Log to RAM and display log in crash dialog 2014-05-25 18:46:15 +02:00
Florian Bruhin
353a447dd6 Initialize logging by hand, nicer output 2014-05-23 18:22:22 +02:00
Florian Bruhin
6825c669b5 Add the ability to filter logging messages 2014-05-23 16:57:08 +02:00
Florian Bruhin
1e256699f8 Add topic-specific loggers 2014-05-23 16:11:55 +02:00