From 0cf6df19333e1b3f7ec24de9abbf3e296d5a7b51 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 16 Apr 2016 21:36:21 +0800 Subject: [PATCH] master/experiments: log more details about experiment name conflicts --- artiq/master/experiments.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/artiq/master/experiments.py b/artiq/master/experiments.py index 904d0c804..9966a8095 100644 --- a/artiq/master/experiments.py +++ b/artiq/master/experiments.py @@ -31,12 +31,14 @@ async def _get_repository_entries(entry_dict, "name (%s)", name) name = name.replace("/", "_") if name in entry_dict: - logger.warning("Duplicate experiment name: '%s'", name) basename = name i = 1 while name in entry_dict: name = basename + str(i) i += 1 + logger.warning("Duplicate experiment name: '%s'\n" + "Renaming class '%s' in '%s' to '%s'", + basename, class_name, filename, name) entry = { "file": filename, "class_name": class_name,