mirror of
https://codeberg.org/dwl/dwl.git
synced 2024-12-27 03:36:31 +00:00
we're not really using the log
This commit is contained in:
parent
f79746c578
commit
3b1992ca91
1 changed files with 4 additions and 20 deletions
24
dwl.c
24
dwl.c
|
@ -1317,8 +1317,6 @@ run(char *startup_cmd)
|
||||||
* compositor. Starting the backend rigged up all of the necessary event
|
* compositor. Starting the backend rigged up all of the necessary event
|
||||||
* loop configuration to listen to libinput events, DRM events, generate
|
* loop configuration to listen to libinput events, DRM events, generate
|
||||||
* frame events at the refresh rate, and so on. */
|
* 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);
|
wl_display_run(dpy);
|
||||||
|
|
||||||
if (startup_cmd) {
|
if (startup_cmd) {
|
||||||
|
@ -1899,30 +1897,16 @@ int
|
||||||
main(int argc, char *argv[])
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
char *startup_cmd = NULL;
|
char *startup_cmd = NULL;
|
||||||
enum wlr_log_importance loglevel = WLR_ERROR;
|
|
||||||
|
|
||||||
int c;
|
int c;
|
||||||
while ((c = getopt(argc, argv, "qvds:h")) != -1) {
|
|
||||||
switch (c) {
|
while ((c = getopt(argc, argv, "s:h")) != -1) {
|
||||||
case 'q':
|
if (c == 's')
|
||||||
loglevel = WLR_SILENT;
|
|
||||||
break;
|
|
||||||
case 'v':
|
|
||||||
loglevel = WLR_INFO;
|
|
||||||
break;
|
|
||||||
case 'd':
|
|
||||||
loglevel = WLR_DEBUG;
|
|
||||||
break;
|
|
||||||
case 's':
|
|
||||||
startup_cmd = optarg;
|
startup_cmd = optarg;
|
||||||
break;
|
else
|
||||||
default:
|
|
||||||
goto usage;
|
goto usage;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (optind < argc)
|
if (optind < argc)
|
||||||
goto usage;
|
goto usage;
|
||||||
wlr_log_init(loglevel, NULL);
|
|
||||||
|
|
||||||
// Wayland requires XDG_RUNTIME_DIR for creating its communications
|
// Wayland requires XDG_RUNTIME_DIR for creating its communications
|
||||||
// socket
|
// socket
|
||||||
|
|
Loading…
Reference in a new issue