fix init_log() called before error() call

log handler expects init_log() has been processed,
without initialization, the call results in abort.

Signed-off-by: Hiroaki KAWAI <kawai@stratosphere.co.jp>
Merge pull request #37 from iHiroakiKawai/init_log_first

fix init_log() called before error() call