Redudant logging code

Remove error_log's , now everything goes to stdout when debug is true