aboutsummaryrefslogtreecommitdiff
path: root/dwl.c
diff options
context:
space:
mode:
authorDevin J. Pohly <djpohly@gmail.com>2020-08-19 00:30:00 -0500
committerDevin J. Pohly <djpohly@gmail.com>2020-08-19 00:30:00 -0500
commit3b1992ca91b9a468019165c985263f5b1cc78c2c (patch)
tree98073f335588641fca5c0d4101ec059a5a52f45e /dwl.c
parentf79746c57877cd41c975cd14797cdba4ca6abff5 (diff)
we're not really using the log
Diffstat (limited to 'dwl.c')
-rw-r--r--dwl.c24
1 files changed, 4 insertions, 20 deletions
diff --git a/dwl.c b/dwl.c
index 25a0c2e..b1d1a39 100644
--- a/dwl.c
+++ b/dwl.c
@@ -1317,8 +1317,6 @@ run(char *startup_cmd)
* compositor. Starting the backend rigged up all of the necessary event
* loop configuration to listen to libinput events, DRM events, generate
* frame events at the refresh rate, and so on. */
- wlr_log(WLR_INFO, "Running Wayland compositor on WAYLAND_DISPLAY=%s",
- socket);
wl_display_run(dpy);
if (startup_cmd) {
@@ -1899,30 +1897,16 @@ int
main(int argc, char *argv[])
{
char *startup_cmd = NULL;
- enum wlr_log_importance loglevel = WLR_ERROR;
-
int c;
- while ((c = getopt(argc, argv, "qvds:h")) != -1) {
- switch (c) {
- case 'q':
- loglevel = WLR_SILENT;
- break;
- case 'v':
- loglevel = WLR_INFO;
- break;
- case 'd':
- loglevel = WLR_DEBUG;
- break;
- case 's':
+
+ while ((c = getopt(argc, argv, "s:h")) != -1) {
+ if (c == 's')
startup_cmd = optarg;
- break;
- default:
+ else
goto usage;
- }
}
if (optind < argc)
goto usage;
- wlr_log_init(loglevel, NULL);
// Wayland requires XDG_RUNTIME_DIR for creating its communications
// socket