Skip to content

Commit

Permalink
Transfers: When debug is enabled, log full exception. rucio#570
Browse files Browse the repository at this point in the history
  • Loading branch information
bbockelm committed Feb 8, 2018
1 parent 4c82d9a commit 412de6a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/rucio
Expand Up @@ -18,6 +18,7 @@
- Evangelia Liotiri <evangelia.liotiri@cern.ch>, 2015
- Tobias Wegner <tobias.wegner@cern.ch>, 2017
- Nicolo Magini <nicolo.magini@cern.ch>, 2018
- Brian Bockelman <bbockelm@cse.unl.edu>, 2018
"""

import argparse
Expand Down Expand Up @@ -1111,7 +1112,10 @@ def upload(args):
logger.debug(error)
logger.error("Some of the files already exist in the catalog. No one will be added.")
except RucioException:
logger.error("A Rucio exception occurred when processing a file for upload.")
if logger.isEnabledFor(logging.DEBUG):
logger.exception("A Rucio exception occurred when processing a file for upload.")
else:
logger.error("A Rucio exception occurred when processing a file for upload.")
raise
logger.debug("Finished uploading files to RSE.")

Expand Down

0 comments on commit 412de6a

Please sign in to comment.