diff options
author | 2016-07-02 08:14:40 -0500 | |
---|---|---|
committer | 2016-07-02 08:14:40 -0500 | |
commit | 034410819d4c8ea28105c5a5eef0563635a36a9d (patch) | |
tree | f24f60afd5ee641bddc78e6b16a8035e3abf7469 /common/log.c | |
parent | Merge branch 'set-size-command' of github.com:zandrmartin/sway into set-size-... (diff) | |
parent | Spawn windows as floating if they have a parent (diff) | |
download | sway-034410819d4c8ea28105c5a5eef0563635a36a9d.tar.gz sway-034410819d4c8ea28105c5a5eef0563635a36a9d.tar.zst sway-034410819d4c8ea28105c5a5eef0563635a36a9d.zip |
Merge remote-tracking branch 'upstream/master' into set-size-command
Diffstat (limited to 'common/log.c')
-rw-r--r-- | common/log.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/common/log.c b/common/log.c index ef791bec..56c3834a 100644 --- a/common/log.c +++ b/common/log.c | |||
@@ -12,9 +12,9 @@ | |||
12 | #include <string.h> | 12 | #include <string.h> |
13 | #include <stringop.h> | 13 | #include <stringop.h> |
14 | 14 | ||
15 | int colored = 1; | 15 | static int colored = 1; |
16 | log_importance_t loglevel_default = L_ERROR; | 16 | static log_importance_t loglevel_default = L_ERROR; |
17 | log_importance_t v = L_SILENT; | 17 | static log_importance_t v = L_SILENT; |
18 | 18 | ||
19 | static const char *verbosity_colors[] = { | 19 | static const char *verbosity_colors[] = { |
20 | [L_SILENT] = "", | 20 | [L_SILENT] = "", |
@@ -38,6 +38,10 @@ void set_log_level(log_importance_t verbosity) { | |||
38 | v = verbosity; | 38 | v = verbosity; |
39 | } | 39 | } |
40 | 40 | ||
41 | log_importance_t get_log_level(void) { | ||
42 | return v; | ||
43 | } | ||
44 | |||
41 | void reset_log_level(void) { | 45 | void reset_log_level(void) { |
42 | v = loglevel_default; | 46 | v = loglevel_default; |
43 | } | 47 | } |