ctaoist 2 лет назад
Родитель
Сommit
0939c3da80
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      src/lib.rs

+ 1 - 0
src/lib.rs

@@ -346,6 +346,7 @@ impl SimpleLogger {
         set_up_color_terminal();
 
         // Set default timestamp format
+        #[cfg(feature = "timestamps")]
         if self.timeformat.len() <= 0 {
             self.timeformat = match self.timestamps {
                 Timestamps::Local => TIMESTAMP_FORMAT_OFFSET,