core icon indicating copy to clipboard operation
core copied to clipboard

Improve log messages when hardlinks can't be created

Open vianneychacon opened this issue 11 years ago • 2 comments

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

vianneychacon avatar Sep 02 '15 08:09 vianneychacon

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

dsilvam avatar Oct 06 '16 15:10 dsilvam

Fixed in https://github.com/dotCMS/core/issues/9197

dsilvam avatar Oct 06 '16 15:10 dsilvam