From fa3baf69b92a05f811aa471fdb278fa08fb3a667 Mon Sep 17 00:00:00 2001
From: Frank Winklmeier <frank.winklmeier@cern.ch>
Date: Tue, 7 Apr 2020 15:58:37 +0200
Subject: [PATCH] AthenaCommon: Disable StatusCode checking in AppMgr

StatusCodeSvc is deprecated (replaced by compile-time checks). As a
first step disable StatusCode checking by default. Should not be
necessary as this is the default in Gaudi anyway.
---
 Control/AthenaCommon/python/AppMgr.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Control/AthenaCommon/python/AppMgr.py b/Control/AthenaCommon/python/AppMgr.py
index 2bf390d3c32..c45afadc313 100755
--- a/Control/AthenaCommon/python/AppMgr.py
+++ b/Control/AthenaCommon/python/AppMgr.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
+# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
 
 # File: AthenaCommon/share/AppMgr.py
 # Author: Wim Lavrijsen (WLavrijsen@lbl.gov)
@@ -194,7 +194,7 @@ class AthAppMgr( AppMgr ):
       if 'EventLoop' not in kw:      kw['EventLoop']="AthenaEventLoopMgr"
       if 'OutStreamType' not in kw:
          kw['OutStreamType'] = "AthenaOutputStream"
-      if 'StatusCodeCheck' not in kw: kw['StatusCodeCheck'] = True
+      if 'StatusCodeCheck' not in kw: kw['StatusCodeCheck'] = False
 
     # always the case in ATLAS (need early or ExtSvc should be a no-op, too)
       kw['ExtSvcCreates'] = False
-- 
GitLab