Fix the error log on windowmanager initialization
authorYuta Doi <yuta-d@witz-inc.co.jp>
Thu, 9 Nov 2017 05:25:57 +0000 (14:25 +0900)
committerYuta Doi <yuta-d@witz-inc.co.jp>
Thu, 9 Nov 2017 05:25:57 +0000 (14:25 +0900)
Fix the bug which is that windowmanager outputs the error log
on the initialization.

Bug-AGL: SPEC-925

Change-Id: I87b20cc7840ef7241ca56ecab440f52333b1753c
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
src/wayland.cpp

index bb34a4c..4a723e5 100644 (file)
@@ -256,7 +256,7 @@ void controller::controller_screen(uint32_t id,
 void controller::controller_layer(uint32_t id) {
    HMI_DEBUG("wm", "compositor::controller @ %p layer %u (%x)", this->proxy.get(), id, id);
    if (this->layers.find(id) != this->layers.end()) {
-      HMI_ERROR("wm", "Someone created a layer without asking US! (%d)", id);
+      HMI_DEBUG("wm", "WindowManager has created layer %u (%x) already", id, id);
    } else {
       auto &l = this->layers[id] = std::make_unique<struct layer>(id, this);
       l->clear_surfaces();