stfc2 / UI

User Interface
http://www.stfc.it
4 stars 5 forks source link

The "message" function may be called indirectly by the Scheduler. #19

Open kirirur opened 9 years ago

kirirur commented 9 years ago

Some functions defined in file game/include/functions.php can be called also by the Scheduler tasks (for example the add_logbook_entry function), but errors log should go on scheduler log file, not UI log file (as it is at the moment), especially because depending on the environment log file could be not written by the Scheduler (different ownership).

The function should use define IN_SCHEDULER to handle different behaviors according to different environments where it may be called.