introduce drainsleep variable with value 0 is no remote logging is
enabled