Fixed bug

* Logging was not working if proxy was started in service mode