fix version check in deprecated log function