Move Turbine language setting
@@ -86,6 +86,11 @@ namespace eval turbine {
# normally "Swift", defaults to ""
proc init { rank_config {lang ""} } {
+ variable language
+ if { $lang != "" } {
+ set language $lang
+ }
+
# Initialize debugging in case other functions want to debug
variable debug_categories
c::init_debug
@@ -114,12 +119,6 @@ namespace eval turbine {
set rank_allocation $rank_config
}
- variable language
-
- if { $lang != "" } {
- set language $lang
- }
-
set servers [ dict get $rank_allocation servers ]
assert_control_sanity $servers
setup_log_string
@@ -478,7 +477,7 @@ namespace eval turbine {
proc turbine_fail { args } {
if { [ adlb::comm_rank ] == 0 } {
- puts* {*}$args
+ puts* $turbine::language ": " {*}$args
}
exit 1
}
