Log platform infos in debug mode

It will help when logs are posted by users with bug reports.
Merge pull request #286 from zas/log_platform

Log platform infos in debug mode