logger: fix wrong reference to file open function