core
core copied to clipboard
Improve log messages when hardlinks can't be created
When a hard link can't be stablished (e.g. dotsecure and assets directories are in different filesystems), an error message gets logged like this:
ERROR com.liferay.util.FileUtil - Can't create hardLink. source:... destination:...
Since it falls back to regular copy instead, it should be a WARN message providing some additional info
Already fixed in this commit: https://github.com/dotCMS/core/commit/ae081bda4c9ec3757cfee68e3b8737d81247e2a7#diff-4f5ae681fcd7777819310cee46a28d71
Current version in 3.6.0: https://github.com/dotCMS/core/blob/3.6.0/src/com/liferay/util/FileUtil.java#L189
Fixed in https://github.com/dotCMS/core/issues/9197