[wesnoth-commits] [wesnoth/wesnoth] 9fe567: Fix deprecation spam

GitHub noreply at github.com
Sun Mar 4 22:41:26 UTC 2018


  Branch: refs/heads/fix_deprecation_spam
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 9fe567e9508f28b7f8523998a7aff13759216d5b
      https://github.com/wesnoth/wesnoth/commit/9fe567e9508f28b7f8523998a7aff13759216d5b
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2018-03-04 (Sun, 04 Mar 2018)

  Changed paths:
    M data/ai/lua/patrol.lua
    M data/lua/core.lua
    M data/lua/wml-tags.lua
    M src/deprecation.cpp
    M src/deprecation.hpp
    M src/log.cpp
    M src/log.hpp
    M src/scripting/lua_common.cpp
    M src/scripting/lua_common.hpp
    M src/scripting/lua_kernel_base.cpp

  Log Message:
  -----------
  Fix deprecation spam

This removes the Lua deprecation_message function in favour of exposing the C++ variant to Lua instead.
It also moves all deprecation messages to a separate logdomain, making them easily enabled en masse.


  Commit: 91ec565dce309a409cb863fee6229addf271e339
      https://github.com/wesnoth/wesnoth/commit/91ec565dce309a409cb863fee6229addf271e339
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2018-03-04 (Sun, 04 Mar 2018)

  Changed paths:
    M src/gui/dialogs/log_settings.cpp

  Log Message:
  -----------
  Fix crash in logging prefs due to deprecation's default -1 severity


  Commit: ace85be0d5710fa70411a2f31a49df286cdeee52
      https://github.com/wesnoth/wesnoth/commit/ace85be0d5710fa70411a2f31a49df286cdeee52
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2018-03-04 (Sun, 04 Mar 2018)

  Changed paths:
    M src/commandline_options.cpp

  Log Message:
  -----------
  Add --log-none command line option to disable ALL output from a logdomain


  Commit: e72ecc5049f9662ad923121bc47125b82ef0297d
      https://github.com/wesnoth/wesnoth/commit/e72ecc5049f9662ad923121bc47125b82ef0297d
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2018-03-04 (Sun, 04 Mar 2018)

  Changed paths:
    M src/game_config.cpp
    M src/game_config.hpp
    M src/game_launcher.cpp
    M src/help/help_impl.cpp
    M src/help/help_impl.hpp
    M src/menu_events.cpp
    M src/wesnoth.cpp

  Log Message:
  -----------
  Boost deprecation logdomain severity when debug mode is enabled


  Commit: a290fe8cc1f0e9a9f444f4b7f77e183cbfce745c
      https://github.com/wesnoth/wesnoth/commit/a290fe8cc1f0e9a9f444f4b7f77e183cbfce745c
  Author: Celtic Minstrel <celtic.minstrel.ca at some.place>
  Date:   2018-03-04 (Sun, 04 Mar 2018)

  Changed paths:
    M data/advanced_preferences.cfg
    M src/deprecation.cpp

  Log Message:
  -----------
  Add hidden preference to show deprecation messages in chat area

In 1.15 the preference will be added to the advanced preferences pane.


Compare: https://github.com/wesnoth/wesnoth/compare/3c383ed45bec...a290fe8cc1f0


More information about the Commits mailing list