diff options
Diffstat (limited to 'src/compiler.c')
-rw-r--r-- | src/compiler.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/compiler.c b/src/compiler.c index c50ffac..08d0225 100644 --- a/src/compiler.c +++ b/src/compiler.c @@ -27,12 +27,12 @@ int amal_compiler_init(amal_compiler *self) { if(result != 0) { self->usable_thread_count = amal_get_usable_thread_count(); if(self->usable_thread_count == 0) { - amal_log_info("Unable to get the number of threads available on the system, using 1 thread."); - amal_log_info("You can override the number of threads using by setting the environment variable THREADS"); + amal_log_warning("Unable to get the number of threads available on the system, using 1 thread."); + amal_log_warning("You can override the number of threads using by setting the environment variable THREADS"); self->usable_thread_count = 1; } - } else if(self->usable_thread_count == 0) { - amal_log_info("Environment variable THREADS contains invalid number for threads. THREADS has to be at least 1."); + } else if(self->usable_thread_count <= 0) { + amal_log_error("Environment variable THREADS contains invalid number for threads. THREADS has to be at least 1."); return AMAL_COMPILER_ERR; } |