Skip to content

Commit

Permalink
Update log severity constants (#403)
Browse files Browse the repository at this point in the history
  • Loading branch information
cztomczak committed Jun 12, 2018
1 parent ced25bf commit 0634b90
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
1 change: 0 additions & 1 deletion api/ApplicationSettings.md
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,6 @@ Accepted values - constants available in the cefpython module:
* LOGSEVERITY_INFO
* LOGSEVERITY_WARNING
* LOGSEVERITY_ERROR (default)
* LOGSEVERITY_ERROR_REPORT
* LOGSEVERITY_DISABLE


Expand Down
3 changes: 2 additions & 1 deletion src/cef_v59..v66_changes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ NEW FEATURES
------------

internal/cef_types.h
- cef_log_severity_t: new key LOGSEVERITY_DEBUG
+ cef_log_severity_t: new key LOGSEVERITY_DEBUG (no need to expose,
same as LOGSEVERITY_VERBOSE, see code comments in setting.pyx
- cef_settings_t:
- background_color: OSR windows can set an ARGB background color
- cef_path_key_t (informational only):
Expand Down
1 change: 1 addition & 0 deletions src/extern/cef/cef_types.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ cdef extern from "include/internal/cef_types.h":
ctypedef enum cef_log_severity_t:
LOGSEVERITY_DEFAULT,
LOGSEVERITY_VERBOSE,
LOGSEVERITY_DEBUG = LOGSEVERITY_VERBOSE,
LOGSEVERITY_INFO,
LOGSEVERITY_WARNING,
LOGSEVERITY_ERROR,
Expand Down
5 changes: 5 additions & 0 deletions src/settings.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ cimport cef_types

LOGSEVERITY_DEFAULT = cef_types.LOGSEVERITY_DEFAULT
LOGSEVERITY_VERBOSE = cef_types.LOGSEVERITY_VERBOSE
# LOGSEVERITY_DEBUG is not exposed, as it is the same
# as LOGSEVERITY_VERBOSE, and because it would be confusing
# as currently passing --debug arg to app causes it to
# set logseverity to LOGSEVERITY_INFO. Verbose logseverity
# contains too much information.
LOGSEVERITY_INFO = cef_types.LOGSEVERITY_INFO
LOGSEVERITY_WARNING = cef_types.LOGSEVERITY_WARNING
LOGSEVERITY_ERROR = cef_types.LOGSEVERITY_ERROR
Expand Down

0 comments on commit 0634b90

Please sign in to comment.