sajty/ember — comment on commit 00661596acb726e4bbc54a45556ef24a56570fa0
File:  line 0
By erikhjortsberg:

The reason for these log messages is that when failing to load a library Ogre will write a failure message to the log. Since I don't want to alarm the readers of the log, these log messages were added mainly as an explanation of the preceding Ogre error messages.
When a library is successfully loaded, Ogre will also write that to the log, making it a bit redundant to have us also write to the log.

For example, this is the output from my ember.log file:
[17:17:37] INFO Trying to load the plugin /home/erik/code/wf/hammer/work/local/lib/OGRE/Plugin_CgProgramManager.so
[17:17:37] INFO (Ogre) Loading library /home/erik/code/wf/hammer/work/local/lib/OGRE/Plugin_CgProgramManager.so
[17:17:37] INFO (Ogre) Installing plugin: Cg Program Manager
[17:17:37] INFO (Ogre) Plugin successfully installed

Both the path of the plugin as well as the fact that it was successfully installed are already output.

In addition, you changed the error message from "warning" to "failure", which might be correct. The inability to load a library is not fatal, but it will certainly affect the user experience. As such, "failure" is a more correct log level than "warning". (The difference between "failure" and "warning" is that the latter is meant to be used when the system detected something which wasn't correct, but there won't really be much of an impact on the user experience from it. "Failure" on the other hand is meant for errors which will have a noticable impact on the user experience.)