刘维克 b1a525301e
fix train.log output (#14846) (#16281)
The bug was introduced in commit e3145103 ("import encryption for aistudio & fix sync bn"),
where the following snippet:
```
try:
    import encryption  # Attempt to import the encryption module for AIStudio's encryption model

    encrypted = encryption.is_encryption_needed()
except ImportError:
    get_logger().warning("Skipping import of the encryption module.")
    encrypted = False  # Encryption is not needed if the module cannot be imported
```
caused `get_logger()` to be called too early, initializing the logger before
the training arguments were passed. As a result, the training process
skipped proper log redirection, and `train.log` was not created.

This patch replaces the warning with a simple `print()` statement,
ensuring the logger is only initialized after training args are passed.

Fixes #14846
2025-08-20 18:30:33 +08:00
..
2025-08-19 11:21:45 +08:00
2025-03-04 11:04:41 +08:00
2020-05-10 16:26:57 +08:00
2021-04-12 14:32:27 +08:00
2025-05-13 14:20:42 +08:00
2024-04-21 21:46:20 +08:00
2024-04-21 21:46:20 +08:00
2025-03-04 11:04:41 +08:00
2024-04-21 21:46:20 +08:00
2024-04-21 21:46:20 +08:00
2024-04-21 21:46:20 +08:00
2025-03-04 11:04:41 +08:00
2024-04-21 21:46:20 +08:00