fixed logging issues in sinatra modularized apps