From eb003689a30c472d355beeb0d0ef06ba977f4b52 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Wed, 2 Sep 2015 09:42:27 -0400 Subject: [PATCH] Log sway version on startup --- sway/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sway/main.c b/sway/main.c index 01c19074..9c7f21b3 100644 --- a/sway/main.c +++ b/sway/main.c @@ -102,6 +102,10 @@ int main(int argc, char **argv) { init_log(L_ERROR); } +#if defined SWAY_GIT_VERSION && defined SWAY_GIT_BRANCH && defined SWAY_VERSION_DATE + sway_log(L_INFO, "Starting sway version %s (%s, branch \"%s\")\n", SWAY_GIT_VERSION, SWAY_VERSION_DATE, SWAY_GIT_BRANCH); +#endif + if (validate) { bool valid = load_config(config_path); return valid ? 0 : 1;